style(rubocop): Lint/ShadowingOuterLocalVariable

This commit is contained in:
Adam Cooke
2024-02-10 22:51:09 +00:00
parent bd85920565
commit 7119e8642d
6 changed files with 43 additions and 52 deletions
+1 -1
View File
@@ -6,7 +6,7 @@ class SendWebhookJob < Postal::Job
if server = Server.find(params["server_id"])
new_items = {}
if params["payload"]
for key, value in params["payload"]
params["payload"].each do |key, value|
next unless key.to_s =~ /\A_(\w+)/
begin
+1 -1
View File
@@ -424,7 +424,7 @@ class UnqueueMessageJob < Postal::Job
end
rescue StandardError => e
log "#{log_prefix} Internal error: #{e.class}: #{e.message}"
e.backtrace.each { |e| log("#{log_prefix} #{e}") }
e.backtrace.each { |line| log("#{log_prefix} #{line}") }
queued_message.retry_later
log "#{log_prefix} Queued message was unlocked"
if defined?(Sentry)