Skip to content

Commit 447a77b

Browse files
committed
Update rubocop
1 parent 059132e commit 447a77b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/jobs/concerns/spotlight/job_tracking.rb

Lines changed: 1 addition & 1 deletion
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)