lib/rubocop/cop/style/unneeded_percent_q.rb in rubocop-0.30.1 vs lib/rubocop/cop/style/unneeded_percent_q.rb in rubocop-0.31.0

- old
+ new

@@ -45,10 +45,10 @@ add_offense(node, :expression, format(MSG, src[0, 2], extra)) end def autocorrect(node) delimiter = node.loc.expression.source =~ /^%Q[^"]+$|'/ ? '"' : "'" - @corrections << lambda do |corrector| + lambda do |corrector| corrector.replace(node.loc.begin, delimiter) corrector.replace(node.loc.end, delimiter) end end end