File tree Expand file tree Collapse file tree 2 files changed +4
-6
lines changed Expand file tree Collapse file tree 2 files changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ CLEAN.push(*%w[.idea/ .ruby-lsp/ .yardoc/])
11
11
12
12
xargs = %w[ xargs --no-run-if-empty --null --max-procs=0 --max-args=300 -- ]
13
13
14
- task ( default : [ :test ] )
14
+ multitask ( default : [ :test ] )
15
15
16
16
multitask ( :test ) do
17
17
rb =
Original file line number Diff line number Diff line change @@ -75,7 +75,7 @@ def primitive?(input)
75
75
def coerce_boolean ( input )
76
76
case input . is_a? ( String ) ? input . downcase : input
77
77
in Numeric
78
- ! input . zero ?
78
+ input . nonzero ?
79
79
in "true"
80
80
true
81
81
in "false"
@@ -165,14 +165,12 @@ class << self
165
165
private def deep_merge_lr ( lhs , rhs , concat : false )
166
166
case [ lhs , rhs , concat ]
167
167
in [ Hash , Hash , _ ]
168
- # rubocop:disable Style/YodaCondition
169
- rhs_cleaned = rhs . reject { |_ , val | OMIT == val }
168
+ rhs_cleaned = rhs . reject { _2 == OpenAI ::Util ::OMIT }
170
169
lhs
171
- . reject { |key , _ | OMIT == rhs [ key ] }
170
+ . reject { |key , _ | rhs [ key ] == OpenAI :: Util :: OMIT }
172
171
. merge ( rhs_cleaned ) do |_ , old_val , new_val |
173
172
deep_merge_lr ( old_val , new_val , concat : concat )
174
173
end
175
- # rubocop:enable Style/YodaCondition
176
174
in [ Array , Array , true ]
177
175
lhs . concat ( rhs )
178
176
else
You can’t perform that action at this time.
0 commit comments