lib/rubocop/cop/rake/helper/task_name.rb in rubocop-rake-0.5.0 vs lib/rubocop/cop/rake/helper/task_name.rb in rubocop-rake-0.5.1
- old
+ new
@@ -9,10 +9,10 @@
def task_name(node)
first_arg = node.arguments[0]
case first_arg&.type
when :sym, :str
- return first_arg.value.to_sym
+ first_arg.value.to_sym
when :hash
return nil if first_arg.children.size != 1
pair = first_arg.children.first
key = pair.children.first