Skip to content

Commit 97ea80d

Browse files
committed
Lint/RescueException
1 parent 8f9eec4 commit 97ea80d

File tree

2 files changed

+1
-5
lines changed

2 files changed

+1
-5
lines changed

.rubocop_todo.yml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,6 @@
55
# Note that changes in the inspected code, or installation of new
66
# versions of RuboCop, may require this file to be generated again.
77

8-
# Offense count: 1
9-
Lint/RescueException:
10-
Enabled: false
11-
128
# Offense count: 2
139
Lint/ShadowingOuterLocalVariable:
1410
Enabled: false

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 Exception => e
20+
rescue => e
2121
@deferable.fail(e)
2222
else
2323
@deferable.succeed(result)

0 commit comments

Comments
 (0)