Skip to content

Commit baf555b

Browse files
committed
rubocop fix
1 parent 8f69188 commit baf555b

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

app/jobs/application_job.rb

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,7 @@ class ApplicationJob < ActiveJob::Base
66
end
77

88
around_perform do |job, block|
9-
if job.arguments.last.is_a?(Hash) && job.arguments.last.key?(:request_id)
10-
@request_id = job.arguments.pop[:request_id]
11-
end
9+
@request_id = job.arguments.pop[:request_id] if job.arguments.last.is_a?(Hash) && job.arguments.last.key?(:request_id)
1210
block.call
1311
end
1412

0 commit comments

Comments
 (0)