Skip to content

Commit 793c0f2

Browse files
committed
refactor: simplify condition
1 parent 21b9162 commit 793c0f2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

operator-framework/src/test/java/io/javaoperatorsdk/operator/sample/retry/RetryTestCustomResourceController.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ public UpdateControl<RetryTestCustomResource> createOrUpdateResource(
3737
if (numberOfExecutions.get() < NUMBER_FAILED_EXECUTIONS + 1) {
3838
throw new RuntimeException("Testing Retry");
3939
}
40-
if (context.getRetryInfo().isEmpty() || context.getRetryInfo().get().isLastAttempt() == true) {
40+
if (context.getRetryInfo().isEmpty() || context.getRetryInfo().get().isLastAttempt()) {
4141
throw new IllegalStateException("Not expected retry info: " + context.getRetryInfo());
4242
}
4343

0 commit comments

Comments
 (0)