Skip to content

Commit

Permalink
fix bug that isComplete returns true if only a single one status is c…
Browse files Browse the repository at this point in the history
…ompleted
  • Loading branch information
woehrl01 committed Mar 1, 2018
1 parent b8f7088 commit 705973d
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -87,9 +87,9 @@ public RemoteNodeStatus add(String nodeId) {
}

public boolean isComplete() {
boolean complete = false;
boolean complete = true;
for (RemoteNodeStatus status : this) {
complete |= status.isComplete();
complete &= status.isComplete();
}
return complete;
}
Expand Down

0 comments on commit 705973d

Please sign in to comment.