mirror of
https://github.com/lightbend/config.git
synced 2025-01-15 23:01:05 +08:00
remove a check for a null in fromBasename that no longer happens
This commit is contained in:
parent
0582f33d94
commit
10e61d1bcd
@ -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");
|
||||
|
Loading…
Reference in New Issue
Block a user