Skip to content

Commit

Permalink
Modify according to comments
Browse files Browse the repository at this point in the history
  • Loading branch information
RongtongJin committed Mar 3, 2023
1 parent af1b3a9 commit ab1ec48
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@

import java.util.HashSet;
import java.util.Set;
import org.apache.commons.lang3.StringUtils;

/**
* Manages the syncStateSet of broker replicas.
Expand Down Expand Up @@ -53,7 +54,7 @@ public void updateSyncStateSetInfo(Set<String> newSyncStateSet) {
}

public boolean isMasterExist() {
return masterAddress != null && !this.masterAddress.isEmpty();
return !StringUtils.isBlank(masterAddress);
}

public String getClusterName() {
Expand Down

0 comments on commit ab1ec48

Please sign in to comment.