Skip to content

Commit

Permalink
remove a check for a null in fromBasename that no longer happens
Browse files Browse the repository at this point in the history
  • Loading branch information
havocp committed Dec 7, 2011
1 parent 0582f33 commit 10e61d1
Showing 1 changed file with 1 addition and 6 deletions.
Expand Up @@ -40,12 +40,7 @@ private static ConfigObject fromBasename(NameSource source, String name,
|| name.endsWith(".properties")) {
ConfigParseable p = source.nameToParseable(name);

if (p != null) {
obj = p.parse(p.options().setAllowMissing(
options.getAllowMissing()));
} else {
obj = SimpleConfigObject.emptyMissing(SimpleConfigOrigin.newSimple(name));
}
obj = p.parse(p.options().setAllowMissing(options.getAllowMissing()));
} else {
ConfigParseable confHandle = source.nameToParseable(name + ".conf");
ConfigParseable jsonHandle = source.nameToParseable(name + ".json");
Expand Down

0 comments on commit 10e61d1

Please sign in to comment.