File tree Expand file tree Collapse file tree 3 files changed +2
-11
lines changed Expand file tree Collapse file tree 3 files changed +2
-11
lines changed Original file line number Diff line number Diff line change @@ -78,15 +78,6 @@ Style/GlobalVars:
78
78
Style/NumericLiterals :
79
79
MinDigits : 20
80
80
81
- # Offense count: 2
82
- # Cop supports --auto-correct.
83
- # Configuration parameters: EnforcedStyle, SupportedStyles.
84
- # SupportedStyles: only_raise, only_fail, semantic
85
- Style/SignalException :
86
- Exclude :
87
- - ' lib/mysql2/client.rb'
88
- - ' spec/em/em_spec.rb'
89
-
90
81
# Offense count: 726
91
82
# Cop supports --auto-correct.
92
83
# Configuration parameters: EnforcedStyle, SupportedStyles, ConsistentQuotesInMultiline.
Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ def self.default_query_options
21
21
end
22
22
23
23
def initialize ( opts = { } )
24
- fail Mysql2 ::Error , "Options parameter must be a Hash" unless opts . is_a? Hash
24
+ raise Mysql2 ::Error , "Options parameter must be a Hash" unless opts . is_a? Hash
25
25
opts = Mysql2 ::Util . key_hash_as_symbols ( opts )
26
26
@read_timeout = nil
27
27
@query_options = self . class . default_query_options . dup
Original file line number Diff line number Diff line change 56
56
defer = client . query "SELECT sleep(0.1) as first_query"
57
57
defer . callback do
58
58
client . close
59
- fail 'some error'
59
+ raise 'some error'
60
60
end
61
61
defer . errback do
62
62
# This _shouldn't_ be run, but it needed to prevent the specs from
You can’t perform that action at this time.
0 commit comments