Skip to content

Commit dd2f86d

Browse files
committed
Fix ameba issues.
1 parent 82bbaec commit dd2f86d

File tree

2 files changed

+12
-2
lines changed

2 files changed

+12
-2
lines changed

.ameba.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@ Style/VerboseBlock:
3131
Enabled: true
3232
Severity: Convention
3333

34+
Documentation/DocumentationAdmonition:
35+
Enabled: false
3436
# Problems found: 1
3537
# Run `ameba --only Lint/LiteralInCondition` for details
3638
Lint/LiteralInCondition:
@@ -55,3 +57,11 @@ Lint/UselessAssign:
5557
- src/sidekiq/web.cr
5658
Enabled: true
5759
Severity: Warning
60+
Naming/AccessorMethodName:
61+
Excluded:
62+
- src/sidekiq/web_helpers.cr
63+
Naming/BlockParameterName:
64+
Enabled: false
65+
Naming/AsciiIdentifiers:
66+
Excluded:
67+
- src/sidekiq/server/heartbeat.cr

src/sidekiq/server/exception_handler.cr

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ module Sidekiq
1919
ctx.error_handlers.each do |handler|
2020
begin
2121
handler.call(ex, ctx_hash)
22-
rescue ex2
23-
ctx.logger.error(exception: ex2) { "!!! ERROR HANDLER THREW AN ERROR !!!" }
22+
rescue e
23+
ctx.logger.error(exception: e) { "!!! ERROR HANDLER THREW AN ERROR !!!" }
2424
end
2525
end
2626
end

0 commit comments

Comments
 (0)