Skip to content

Commit

Permalink
Update operation.cr
Browse files Browse the repository at this point in the history
  • Loading branch information
gdotdesign committed Jul 18, 2023
1 parent 37db9b6 commit 6e51ae0
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/formatters/operation.cr
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@ module Mint
right =
format node.right

if node.new_line? &&
node.right.is_a?(Ast::Operation)
if node.new_line?
"#{left} #{node.operator}\n#{indent(right.remove_all_leading_whitespace)}"
else
"#{left} #{node.operator} #{right}"
Expand Down

0 comments on commit 6e51ae0

Please sign in to comment.