mirror of
https://github.com/lightbend/config.git
synced 2025-01-28 21:20:07 +08:00
Unify guess syntax decision tree
This commit is contained in:
parent
a3904f505b
commit
b091c8f641
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user