1
1
mirror of https://github.com/github/semantic.git synced 2024-11-24 17:04:47 +03:00

Use a switch statement.

This commit is contained in:
Rob Rix 2015-10-30 14:56:18 -04:00
parent 9476deb5d6
commit 4bd9a4d600

View File

@ -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)