Skip to content

Commit 835d828

Browse files
authored
Some tiny improvements
1 parent 2b97214 commit 835d828

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/jobs/delete_action_job.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,10 @@ def perform
3030
end
3131

3232
# Ignore errors if the target resource has already been deleted (e.g., by a parallel job)
33-
quoted_table_name = @model_class.db.quote_identifier(@model_class.table_name)
33+
quoted_table_name = model_class.db.quote_identifier(model_class.table_name)
3434
errors.reject! { |err| err.is_a?(Sequel::NoExistingObject) && err.message.include?("DELETE FROM #{quoted_table_name}") } unless errors.frozen?
3535

36-
raise errors.first unless errors&.empty?
36+
raise errors.first unless errors.empty?
3737

3838
warnings
3939
end

0 commit comments

Comments
 (0)