File tree 4 files changed +5
-4
lines changed
4 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -45,7 +45,7 @@ Metrics/BlockNesting:
45
45
# Offense count: 1
46
46
# Configuration parameters: CountComments, CountAsOne.
47
47
Metrics/ClassLength :
48
- Max : 135
48
+ Max : 141
49
49
50
50
# Offense count: 3
51
51
# Configuration parameters: IgnoredMethods.
Original file line number Diff line number Diff line change @@ -108,7 +108,7 @@ def add_ssl_defines(header)
108
108
warn "-----\n Using --with-mysql-dir=#{ File . dirname inc } \n -----"
109
109
rpath_dir = lib
110
110
have_library ( 'mysqlclient' )
111
- elsif ( mc = ( with_config ( 'mysql-config' ) || Dir [ GLOB ] . first ) )
111
+ elsif ( mc = with_config ( 'mysql-config' ) || Dir [ GLOB ] . first )
112
112
# If the user has provided a --with-mysql-config argument, we must respect it or fail.
113
113
# If the user gave --with-mysql-config with no argument means we should try to find it.
114
114
mc = Dir [ GLOB ] . first if mc == true
Original file line number Diff line number Diff line change @@ -98,7 +98,8 @@ def initialize(opts = {})
98
98
end
99
99
100
100
def extract_password ( opts )
101
- return ( opts [ :password ] || opts [ :pass ] ) if !opts [ :password_provider ]
101
+ return opts [ :password ] || opts [ :pass ] unless opts [ :password_provider ]
102
+
102
103
klass = Kernel . const_get ( opts [ :password_provider ] )
103
104
104
105
obj = klass . new ( opts )
Original file line number Diff line number Diff line change @@ -320,7 +320,7 @@ def stmt_count
320
320
result = @client . prepare ( "SELECT 1 UNION SELECT 2" ) . execute ( stream : true , cache_rows : false )
321
321
expect do
322
322
result . each { }
323
- result . each { } # rubocop:disable Style/CombinableLoops
323
+ result . each { }
324
324
end . to raise_exception ( Mysql2 ::Error )
325
325
end
326
326
end
You can’t perform that action at this time.
0 commit comments