From 4bd9a4d6008ba2a4e4225ddf30a43a28a6d79b15 Mon Sep 17 00:00:00 2001 From: Rob Rix Date: Fri, 30 Oct 2015 14:56:18 -0400 Subject: [PATCH] Use a switch statement. --- prototype/doubt-difftool/main.swift | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/prototype/doubt-difftool/main.swift b/prototype/doubt-difftool/main.swift index 501fb0e32..8368b1239 100644 --- a/prototype/doubt-difftool/main.swift +++ b/prototype/doubt-difftool/main.swift @@ -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)