Skip to content

Commit

Permalink
minor refactoring with boolean condition
Browse files Browse the repository at this point in the history
Signed-off-by: Sandesh Kumar <[email protected]>
  • Loading branch information
sandeshkr419 committed Mar 28, 2023
1 parent a8fc151 commit b7cda75
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,7 @@ public void validateRole(List<DiscoveryNodeRole> roles) {

@Override
public boolean isEnabledByDefault(final Settings settings) {
return !Booleans.isBoolean(settings.get("node.master"));
return Booleans.isBoolean(settings.get("node.master")) == false;
}
};

Expand Down

0 comments on commit b7cda75

Please sign in to comment.