lib/rubocop/cop/style/hash_syntax.rb in rubocop-0.30.1 vs lib/rubocop/cop/style/hash_syntax.rb in rubocop-0.31.0
- old
+ new
@@ -56,10 +56,10 @@
check(pairs, ':', MSG_RUBY19_NO_MIXED_KEYS)
end
end
def autocorrect(node)
- @corrections << lambda do |corrector|
+ lambda do |corrector|
if style == :hash_rockets || @force_hash_rockets
autocorrect_hash_rockets(corrector, node)
elsif style == :ruby19_no_mixed_keys
autocorrect_ruby19_no_mixed_keys(corrector, node)
else