Skip to content

Commit

Permalink
Support both string and boolean for deleteConnectionFile.
Browse files Browse the repository at this point in the history
  • Loading branch information
mnlipp committed Jan 31, 2025
1 parent ecd7ba7 commit 4fc0d6f
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -198,9 +198,8 @@ public void onConfigurationUpdate(ConfigurationUpdate event) {
// Delete connection file
deleteConnectionFile
= Optional.ofNullable(c.get("deleteConnectionFile"))
.filter(v -> v instanceof String)
.map(v -> (String) v)
.map(Boolean::parseBoolean).orElse(true);
.map(Object::toString).map(Boolean::parseBoolean)
.orElse(true);

// Users or roles for which previews should be synchronized
syncUsers = ((List<Map<String, String>>) c.getOrDefault(
Expand Down

0 comments on commit 4fc0d6f

Please # to comment.