diff --git a/config/src/main/java/com/typesafe/config/impl/ConfigImplUtil.java b/config/src/main/java/com/typesafe/config/impl/ConfigImplUtil.java index 9a13ea84..1dcc43d3 100644 --- a/config/src/main/java/com/typesafe/config/impl/ConfigImplUtil.java +++ b/config/src/main/java/com/typesafe/config/impl/ConfigImplUtil.java @@ -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;