mirror of
https://github.com/github/semantic.git
synced 2024-12-25 07:55:12 +03:00
Use a switch statement.
This commit is contained in:
parent
9476deb5d6
commit
4bd9a4d600
@ -105,7 +105,10 @@ func toTerm(term: CofreeJSON) -> Term {
|
||||
}
|
||||
|
||||
func parserForType(type: String) -> (String throws -> Term)? {
|
||||
return Source.languagesByType[type].map(termWithInput)
|
||||
switch type {
|
||||
default:
|
||||
return Source.languagesByType[type].map(termWithInput)
|
||||
}
|
||||
}
|
||||
|
||||
let arguments = BoundsCheckedArray(array: Process.arguments)
|
||||
|
Loading…
Reference in New Issue
Block a user