Skip to content

Commit

Permalink
feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
tlrx committed Jan 23, 2023
1 parent 134bb5c commit e62d927
Showing 1 changed file with 4 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@

package org.elasticsearch.action;

import org.elasticsearch.Assertions;
import org.elasticsearch.ExceptionsHelper;
import org.elasticsearch.common.CheckedSupplier;
import org.elasticsearch.core.CheckedConsumer;
Expand Down Expand Up @@ -411,10 +410,8 @@ public void onFailure(Exception e) {
}

private boolean assertNotExecuted() {
if (Assertions.ENABLED) {
assert executed == false : "listener already executed";
executed = true;
}
assert executed == false : "listener already executed";
executed = true;
return true;
}

Expand Down Expand Up @@ -468,10 +465,8 @@ public void onFailure(Exception e) {
}

private boolean assertNotExecuted() {
if (Assertions.ENABLED) {
assert executed == false : "listener already executed";
executed = true;
}
assert executed == false : "listener already executed";
executed = true;
return true;
}

Expand Down

0 comments on commit e62d927

Please sign in to comment.