Skip to content

Commit f389e18

Browse files
committed
Fix Lint/RescueWithoutErrorClass
1 parent 36b037d commit f389e18

File tree

2 files changed

+1
-6
lines changed

2 files changed

+1
-6
lines changed

.rubocop_todo.yml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -46,11 +46,6 @@ Lint/AmbiguousBlockAssociation:
4646
Exclude:
4747
- 'spec/mysql2/client_spec.rb'
4848

49-
# Offense count: 1
50-
Lint/RescueWithoutErrorClass:
51-
Exclude:
52-
- 'lib/mysql2/em.rb'
53-
5449
# Offense count: 2
5550
# Cop supports --auto-correct.
5651
Lint/UnifiedInteger:

lib/mysql2/em.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ def notify_readable
1717
detach
1818
begin
1919
result = @client.async_result
20-
rescue => e
20+
rescue StandardError => e
2121
@deferable.fail(e)
2222
else
2323
@deferable.succeed(result)

0 commit comments

Comments
 (0)