Kill redundant conditional in BootstrapCheck#check
This commit removes an unnecessary if statement in Bootstrap#check. The removed if statement was duplicating the conditionals in the nested if statements and was merely an artifact of an earlier refactoring.
This commit is contained in:
parent
226679c606
commit
15f33e61b7
|
@ -114,8 +114,6 @@ final class BootstrapCheck {
|
|||
}
|
||||
}
|
||||
|
||||
if (!errors.isEmpty() || !ignoredErrors.isEmpty()) {
|
||||
|
||||
if (!ignoredErrors.isEmpty()) {
|
||||
ignoredErrors.forEach(error -> log(logger, error));
|
||||
}
|
||||
|
@ -130,7 +128,6 @@ final class BootstrapCheck {
|
|||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
static void log(final ESLogger logger, final String error) {
|
||||
logger.warn(error);
|
||||
|
|
Loading…
Reference in New Issue