Skip to content

Commit f769649

Browse files
committed
Merge remote-tracking branch 'origin/master'
2 parents 87720cb + dd2f86d commit f769649

File tree

3 files changed

+13
-3
lines changed

3 files changed

+13
-3
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

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
uses: actions/checkout@master
2323

2424
- name: Crystal Ameba Linter
25-
uses: crystal-ameba/github-action@v0.7.1
25+
uses: crystal-ameba/github-action@v0.9.0
2626
env:
2727
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2828

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)