Skip to content

Commit

Permalink
Remove Duplicate If Condition in SimpleJobTests
Browse files Browse the repository at this point in the history
  • Loading branch information
chldppwls12 authored and fmbenhassine committed Sep 19, 2024
1 parent 1379e9c commit 196f457
Showing 1 changed file with 1 addition and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -588,12 +588,7 @@ public void execute(StepExecution stepExecution)
stepExecution.addFailureException(exception);
return;
}
if (exception instanceof JobInterruptedException) {
stepExecution.setExitStatus(ExitStatus.FAILED);
stepExecution.setStatus(BatchStatus.FAILED);
stepExecution.addFailureException(exception);
return;
}

if (runnable != null) {
runnable.run();
}
Expand Down

0 comments on commit 196f457

Please sign in to comment.