mirror of
https://github.com/lightbend/config.git
synced 2025-02-24 02:00:46 +08:00
Cosmetic fix to SimpleIncluder.java
There was some stuff needlessly outside the block in which it was used.
This commit is contained in:
parent
41a7dfd62a
commit
274dd4f6b3
@ -221,7 +221,6 @@ class SimpleIncluder implements FullIncluder {
|
|||||||
+ "exceptions should have been logged above.");
|
+ "exceptions should have been logged above.");
|
||||||
}
|
}
|
||||||
|
|
||||||
String failMessage;
|
|
||||||
if (fails.isEmpty()) {
|
if (fails.isEmpty()) {
|
||||||
// this should not happen
|
// this should not happen
|
||||||
throw new ConfigException.BugOrBroken(
|
throw new ConfigException.BugOrBroken(
|
||||||
@ -233,10 +232,9 @@ class SimpleIncluder implements FullIncluder {
|
|||||||
sb.append(", ");
|
sb.append(", ");
|
||||||
}
|
}
|
||||||
sb.setLength(sb.length() - 2);
|
sb.setLength(sb.length() - 2);
|
||||||
failMessage = sb.toString();
|
throw new ConfigException.IO(SimpleConfigOrigin.newSimple(name), sb.toString(),
|
||||||
}
|
|
||||||
throw new ConfigException.IO(SimpleConfigOrigin.newSimple(name), failMessage,
|
|
||||||
fails.get(0));
|
fails.get(0));
|
||||||
|
}
|
||||||
} else if (!gotSomething) {
|
} else if (!gotSomething) {
|
||||||
if (ConfigImpl.traceLoadsEnabled()) {
|
if (ConfigImpl.traceLoadsEnabled()) {
|
||||||
ConfigImpl.trace("Did not find '" + name
|
ConfigImpl.trace("Did not find '" + name
|
||||||
|
Loading…
Reference in New Issue
Block a user