lib/rubocop/cop/lint/boolean_symbol.rb in rubocop-0.51.0 vs lib/rubocop/cop/lint/boolean_symbol.rb in rubocop-0.52.0
- old
+ new
@@ -28,10 +28,10 @@
def_node_matcher :boolean_symbol?, '(sym {:true :false})'
def on_sym(node)
return unless boolean_symbol?(node)
- add_offense(node, message: format(MSG, node.to_a.first))
+ add_offense(node, message: format(MSG, node.value))
end
end
end
end
end