Skip to content

Commit

Permalink
Issue:3933 - Fix spotless check failure
Browse files Browse the repository at this point in the history
Signed-off-by: Pranit Kumar <[email protected]>
  • Loading branch information
pranikum committed Jul 21, 2022
1 parent 1f54bd2 commit 2db4aa4
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -133,13 +133,14 @@ public void setNumberOfNodes(int numberOfNodes) {
);
}

if(numberOfNodes < zoneCount) {
throw new IllegalArgumentException("Number of nodes should be >= zoneCount but was " + numberOfNodes + " for " + this.zoneCount);
if (numberOfNodes < zoneCount) {
throw new IllegalArgumentException(
"Number of nodes should be >= zoneCount but was " + numberOfNodes + " for " + this.zoneCount
);
}

int currentZone = 1;
for (int i = nodes.size(); i < numberOfNodes; i++) {
//addNode(clusterName + "-" + i);
currentZone = (currentZone >= zoneCount) ? 1 : (currentZone + 1);
String zoneName = "zone-" + currentZone;
addNode(clusterName + "-" + i, zoneName);
Expand Down

0 comments on commit 2db4aa4

Please sign in to comment.