mirror of
https://github.com/lightbend/config.git
synced 2025-03-31 06:30:23 +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")) {
|
|| name.endsWith(".properties")) {
|
||||||
ConfigParseable p = source.nameToParseable(name);
|
ConfigParseable p = source.nameToParseable(name);
|
||||||
|
|
||||||
if (p != null) {
|
obj = p.parse(p.options().setAllowMissing(options.getAllowMissing()));
|
||||||
obj = p.parse(p.options().setAllowMissing(
|
|
||||||
options.getAllowMissing()));
|
|
||||||
} else {
|
|
||||||
obj = SimpleConfigObject.emptyMissing(SimpleConfigOrigin.newSimple(name));
|
|
||||||
}
|
|
||||||
} else {
|
} else {
|
||||||
ConfigParseable confHandle = source.nameToParseable(name + ".conf");
|
ConfigParseable confHandle = source.nameToParseable(name + ".conf");
|
||||||
ConfigParseable jsonHandle = source.nameToParseable(name + ".json");
|
ConfigParseable jsonHandle = source.nameToParseable(name + ".json");
|
||||||
|
Loading…
Reference in New Issue
Block a user