Skip to content

Commit

Permalink
Unify guess syntax decision tree
Browse files Browse the repository at this point in the history
  • Loading branch information
ntviet18 committed Jul 25, 2018
1 parent a3904f5 commit b091c8f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ static String toCamelCase(String originalName) {
public static ConfigSyntax syntaxFromExtension(String filename) {
if (filename == null)
return null;
if (filename.endsWith(".json"))
else if (filename.endsWith(".json"))
return ConfigSyntax.JSON;
else if (filename.endsWith(".conf"))
return ConfigSyntax.CONF;
Expand Down

0 comments on commit b091c8f

Please sign in to comment.