Skip to content

Commit

Permalink
[Improvement] fixed string comparison
Browse files Browse the repository at this point in the history
  • Loading branch information
dk2k committed Jun 25, 2024
1 parent e200aa3 commit 92e7a0f
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 92e7a0f

Please sign in to comment.