Skip to content

Commit

Permalink
[Truffle] Huh turns out this wasn't a bug.
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisseaton committed Dec 10, 2016
1 parent 26a6822 commit ca459dd
Showing 1 changed file with 1 addition and 2 deletions.
Expand Up @@ -570,17 +570,16 @@ private static void errorMissingEquals(String label) {
throw mee;
}

@SuppressWarnings("fallthrough")
private void processEncodingOption(String value) {
List<String> encodings = StringSupport.split(value, ':', 3);
switch (encodings.size()) {
case 3:
throw new MainExitException(1, "extra argument for -E: " + encodings.get(2));
case 2:
config.setInternalEncoding(encodings.get(1));
break;
case 1:
config.setExternalEncoding(encodings.get(0));
break;
// Zero is impossible
}
}
Expand Down

0 comments on commit ca459dd

Please sign in to comment.