Skip to content

Commit

Permalink
[Improvement] fix string comparison in ZkClusterInitializer (#4451)
Browse files Browse the repository at this point in the history
  • Loading branch information
dk2k authored Jun 26, 2024
1 parent e200aa3 commit 7594705
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ public boolean initializeCluster(URI metadataServiceUri, int numStorageContainer

String ledgersPath = metadataServiceUri.getPath();
Optional<String> segmentStorePath;
if (Strings.isNullOrEmpty(ledgersPath) || "/" == ledgersPath) {
if (Strings.isNullOrEmpty(ledgersPath) || "/".equals(ledgersPath)) {
segmentStorePath = Optional.empty();
} else {
segmentStorePath = Optional.of(ledgersPath);
Expand Down

0 comments on commit 7594705

Please sign in to comment.