Skip to content

Commit 86b0c39

Browse files
pawelmabbatsov
authored andcommitted
Fix non existing wording in HashShorthandSyntax method name
1 parent b9686b5 commit 86b0c39

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/rubocop/cop/mixin/hash_shorthand_syntax.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ def hash_with_values_that_cant_be_omitted?(hash_value_type_breakdown)
173173
hash_value_type_breakdown[:value_needed]&.any?
174174
end
175175

176-
def ignore_explicit_ommitable_hash_shorthand_syntax?(hash_value_type_breakdown)
176+
def ignore_explicit_omissible_hash_shorthand_syntax?(hash_value_type_breakdown)
177177
hash_value_type_breakdown.keys == [:value_omittable] &&
178178
enforced_shorthand_syntax == 'consistent_either'
179179
end
@@ -204,7 +204,7 @@ def mixed_shorthand_syntax_check(hash_value_type_breakdown)
204204

205205
def no_mixed_shorthand_syntax_check(hash_value_type_breakdown)
206206
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)
208208

209209
each_omittable_value_pair(hash_value_type_breakdown) do |pair_node|
210210
hash_key_source = pair_node.key.source

0 commit comments

Comments
 (0)