Skip to content

Commit

Permalink
Fixed #5
Browse files Browse the repository at this point in the history
  • Loading branch information
bivashy committed Jan 4, 2023
1 parent 89b3481 commit abe69ad
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ public boolean isLoggingEnabled() {
}

private boolean getBoolean(String... path) {
return getSection((sectionOptional, key) -> sectionOptional.map(section -> section.getBoolean(key))).orElse(false);
return getSection((sectionOptional, key) -> sectionOptional.map(section -> section.getBoolean(key)), path).orElse(false);
}

private String getString(String... path) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ public boolean isLoggingEnabled() {
}

private boolean getBoolean(String... path) {
return getSection((sectionOptional, key) -> sectionOptional.map(section -> section.getBoolean(key))).orElse(false);
return getSection((sectionOptional, key) -> sectionOptional.map(section -> section.getBoolean(key)), path).orElse(false);
}

private String getString(String... path) {
Expand Down

0 comments on commit abe69ad

Please sign in to comment.