lib/rubocop/cop/style/hash_syntax.rb in rubocop-1.18.2 vs lib/rubocop/cop/style/hash_syntax.rb in rubocop-1.18.3
- old
+ new
@@ -72,10 +72,10 @@
hash_rockets_check(pairs)
elsif style == :ruby19_no_mixed_keys
ruby19_no_mixed_keys_check(pairs)
elsif style == :no_mixed_keys
no_mixed_keys_check(pairs)
- elsif node.source.include?('=>')
+ else
ruby19_check(pairs)
end
end
def ruby19_check(pairs)