Skip to content

Commit 91c9c52

Browse files
authored
Merge pull request #3403 from projectblacklight/rubocop-4.x
[4.x] Update rubocop
2 parents 059132e + 447a77b commit 91c9c52

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/jobs/concerns/spotlight/job_tracking.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ def initialize_job_tracker!(**params)
4444
end
4545

4646
def finalize_job_tracker!
47-
return unless job_tracker.status == 'in_progress' || job_tracker.status == 'enqueued'
47+
return unless %w[in_progress enqueued].include?(job_tracker.status)
4848

4949
job_tracker.update(
5050
status: @failed ? 'failed' : 'completed',

0 commit comments

Comments
 (0)