lib/rubocop/cop/lint/useless_setter_call.rb in rubocop-0.20.1 vs lib/rubocop/cop/lint/useless_setter_call.rb in rubocop-0.21.0
- old
+ new
@@ -13,10 +13,10 @@
# x.attr = 5
# end
class UselessSetterCall < Cop
include CheckMethods
- MSG = 'Useless setter call to local variable %s.'
+ MSG = 'Useless setter call to local variable `%s`.'
ASSIGNMENT_TYPES = [:lvasgn, :ivasgn, :cvasgn, :gvasgn].freeze
private
def check(_node, _method_name, args, body)