File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -173,7 +173,7 @@ def hash_with_values_that_cant_be_omitted?(hash_value_type_breakdown)
173
173
hash_value_type_breakdown [ :value_needed ] &.any?
174
174
end
175
175
176
- def ignore_explicit_ommitable_hash_shorthand_syntax ?( hash_value_type_breakdown )
176
+ def ignore_explicit_omissible_hash_shorthand_syntax ?( hash_value_type_breakdown )
177
177
hash_value_type_breakdown . keys == [ :value_omittable ] &&
178
178
enforced_shorthand_syntax == 'consistent_either'
179
179
end
@@ -204,7 +204,7 @@ def mixed_shorthand_syntax_check(hash_value_type_breakdown)
204
204
205
205
def no_mixed_shorthand_syntax_check ( hash_value_type_breakdown )
206
206
return if hash_with_values_that_cant_be_omitted? ( hash_value_type_breakdown )
207
- return if ignore_explicit_ommitable_hash_shorthand_syntax ?( hash_value_type_breakdown )
207
+ return if ignore_explicit_omissible_hash_shorthand_syntax ?( hash_value_type_breakdown )
208
208
209
209
each_omittable_value_pair ( hash_value_type_breakdown ) do |pair_node |
210
210
hash_key_source = pair_node . key . source
You can’t perform that action at this time.
0 commit comments