lib/rubocop/cop/lint/useless_setter_call.rb in rubocop-0.19.1 vs lib/rubocop/cop/lint/useless_setter_call.rb in rubocop-0.20.0

- old
+ new

@@ -38,10 +38,10 @@ var_name, = *receiver return if tracker.contain_object_passed_as_argument?(var_name) add_offense(receiver, :name, - MSG.format(receiver.loc.name.source)) + format(MSG, receiver.loc.name.source)) end def setter_call_to_local_variable?(node) return unless node && node.type == :send receiver, method, _args = *node