lib/rubocop/cop/layout/multiline_block_layout.rb in rubocop-0.84.0 vs lib/rubocop/cop/layout/multiline_block_layout.rb in rubocop-0.85.0
- old
+ new
@@ -79,10 +79,12 @@
return unless node.body
expr_before_body ||= node.loc.begin
- autocorrect_body(corrector, node, node.body) if expr_before_body.line == node.body.first_line
+ if expr_before_body.line == node.body.first_line
+ autocorrect_body(corrector, node, node.body)
+ end
end
end
private