Skip to content

Commit

Permalink
inverted check. oops
Browse files Browse the repository at this point in the history
  • Loading branch information
ix0rai committed Jul 17, 2024
1 parent 67e1587 commit 8f449b0
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ public void raise(Message message, Object... args) {
public boolean canProceed() {
List<ParameterizedMessage> messagesCopy = new ArrayList<>(this.messages);

boolean hasError = this.messages.stream().noneMatch(m -> m.message().getType() == Message.Type.ERROR);
boolean hasError = this.messages.stream().anyMatch(m -> m.message().getType() == Message.Type.ERROR);
if (hasError) {
return false;
} else {
Expand Down

0 comments on commit 8f449b0

Please sign in to comment.