Skip to content

Commit

Permalink
Fix ameba issues.
Browse files Browse the repository at this point in the history
  • Loading branch information
hugopl committed Aug 28, 2024
1 parent 82bbaec commit dd2f86d
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
10 changes: 10 additions & 0 deletions .ameba.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ Style/VerboseBlock:
Enabled: true
Severity: Convention

Documentation/DocumentationAdmonition:
Enabled: false
# Problems found: 1
# Run `ameba --only Lint/LiteralInCondition` for details
Lint/LiteralInCondition:
Expand All @@ -55,3 +57,11 @@ Lint/UselessAssign:
- src/sidekiq/web.cr
Enabled: true
Severity: Warning
Naming/AccessorMethodName:
Excluded:
- src/sidekiq/web_helpers.cr
Naming/BlockParameterName:
Enabled: false
Naming/AsciiIdentifiers:
Excluded:
- src/sidekiq/server/heartbeat.cr
4 changes: 2 additions & 2 deletions src/sidekiq/server/exception_handler.cr
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ module Sidekiq
ctx.error_handlers.each do |handler|
begin
handler.call(ex, ctx_hash)
rescue ex2
ctx.logger.error(exception: ex2) { "!!! ERROR HANDLER THREW AN ERROR !!!" }
rescue e
ctx.logger.error(exception: e) { "!!! ERROR HANDLER THREW AN ERROR !!!" }
end
end
end
Expand Down

0 comments on commit dd2f86d

Please sign in to comment.