lib/rubocop/cop/style/method_def_parentheses.rb in rubocop-0.36.0 vs lib/rubocop/cop/style/method_def_parentheses.rb in rubocop-0.37.0
- old
+ new
@@ -67,10 +67,10 @@
end
args
end
def arguments?(args)
- args.children.size > 0
+ !args.children.empty?
end
def parentheses?(args)
args.loc.begin
end