Unify guess syntax decision tree

This commit is contained in:
The Viet Nguyen 2018-07-25 19:11:50 +03:00
parent a3904f505b
commit b091c8f641

View File

@ -244,7 +244,7 @@ final public class ConfigImplUtil {
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;