lib/rubocop/cop/style/if_unless_modifier.rb in rubocop-1.33.0 vs lib/rubocop/cop/style/if_unless_modifier.rb in rubocop-1.34.0
- old
+ new
@@ -94,10 +94,10 @@
def too_long_single_line?(node)
return false unless max_line_length
range = node.source_range
- return false unless range.first_line == range.last_line
+ return false unless range.single_line?
return false unless line_length_enabled_at_line?(range.first_line)
line = range.source_line
return false if line_length(line) <= max_line_length