Skip to content

Commit

Permalink
Small refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
mattwilshire committed Oct 31, 2024
1 parent 4a5043e commit 0b9f4fa
Showing 1 changed file with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -192,10 +192,7 @@ public void cleanQuartzJobs() throws SchedulerException {

scheduledJobRepository
.findByUuid(jobKey.getName())
.ifPresent(
job -> {
scheduledJobRepository.delete(job);
});
.ifPresent(scheduledJobRepository::delete);

logger.info(
"Removed job with id: '{}' as it is no longer in the data source.", jobKey.getName());
Expand Down

0 comments on commit 0b9f4fa

Please sign in to comment.