Skip to content

Commit cea70f4

Browse files
committed
Remove unneeded assertion disjunction in engine
This commit removes an unneeded disjunction in an assertion in the engine.
1 parent ab18bde commit cea70f4

File tree

1 file changed

+1
-1
lines changed
  • core/src/main/java/org/elasticsearch/index/engine

1 file changed

+1
-1
lines changed

core/src/main/java/org/elasticsearch/index/engine/Engine.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -361,7 +361,7 @@ public Operation.TYPE getOperationType() {
361361

362362
void setTranslogLocation(Translog.Location translogLocation) {
363363
if (freeze.get() == null) {
364-
assert failure == null || translogLocation == null: "failure has to be null to set translog location";
364+
assert failure == null : "failure has to be null to set translog location";
365365
this.translogLocation = translogLocation;
366366
} else {
367367
throw new IllegalStateException("result is already frozen");

0 commit comments

Comments
 (0)