remove a check for a null in fromBasename that no longer happens

This commit is contained in:
Havoc Pennington 2011-12-07 09:26:57 -05:00
parent 0582f33d94
commit 10e61d1bcd

View File

@ -40,12 +40,7 @@ public class ConfigImpl {
|| 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");