Skip to content

Commit

Permalink
Update openbas-api/src/main/java/io/openbas/scheduler/jobs/InjectsExe…
Browse files Browse the repository at this point in the history
…cutionJob.java

Co-authored-by: Gael Leblan <[email protected]>
  • Loading branch information
guillaumejparis and Dimfacion authored Nov 15, 2024
1 parent 4c5317d commit 7c0914f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ private void setInjectStatusAndExecuteInject(ExecutableInject executableInject,
InjectStatus injectStatus =
inject
.getStatus()
.orElseGet(
.orElseThrow(() -> new IllegalArgumentException("Status should exists"));
() -> {
throw new IllegalArgumentException("Status should exists");
});
Expand Down

0 comments on commit 7c0914f

Please sign in to comment.