Skip to content

Commit

Permalink
Removed a fix, moved into PR #1217
Browse files Browse the repository at this point in the history
  • Loading branch information
Marcus Roberts committed May 12, 2022
1 parent 9c66eb6 commit 8f38552
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 10 deletions.
2 changes: 1 addition & 1 deletion compiler/grainformat/format.re
Original file line number Diff line number Diff line change
Expand Up @@ -2740,7 +2740,7 @@ and print_expression =
])
| _ =>
Doc.concat([
if (true_is_block) {Doc.space} else {Doc.line},
Doc.line,
Doc.text("else"),
if (true_is_block) {
false_made_block := true;
Expand Down
3 changes: 0 additions & 3 deletions compiler/test/formatter_inputs/ifthenelse.gr
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,3 @@ if (SomeModule.ne(mval, 10)) (if (SomeModule.ltS(yval, 11)) SomeModule.sub(12, m

if (SomeModule.ne(mval, 10000)) (if (SomeModule.ltS(yval, 111111)) SomeModule.sub(1323232, mres) else mres) else 1232324

if (1 ==2) {
print("false")
} else print("true")
6 changes: 0 additions & 6 deletions compiler/test/formatter_outputs/ifthenelse.gr
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,3 @@ if (SomeModule.ne(mval, 10)) (
if (SomeModule.ne(mval, 10000)) (
if (SomeModule.ltS(yval, 111111)) SomeModule.sub(1323232, mres) else mres
) else 1232324

if (1 == 2) {
print("false")
} else {
print("true")
}

0 comments on commit 8f38552

Please sign in to comment.