File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -1888,13 +1888,15 @@ let genTupleExpr (node: ExprTupleNode) =
1888
1888
| _ -> expr
1889
1889
1890
1890
let shortExpression =
1891
+ let lastIndex = Array.length node.Children - 1
1892
+
1891
1893
coli sepNone node.Items ( fun i c ->
1892
- match i , c with
1893
- | i , Choice1Of2 e ->
1894
+ match c with
1895
+ | Choice1Of2 e ->
1894
1896
match e with
1895
- | IsLambdaOrIfThenElse e when i <> Array.length node.Children - 1 -> sepOpenT +> genExpr e +> sepCloseT
1897
+ | IsLambdaOrIfThenElse e when i <> lastIndex -> sepOpenT +> genExpr e +> sepCloseT
1896
1898
| e -> genExpr ( wrapInfixAppRhsInParenIfNeeded e)
1897
- | _, Choice2Of2 comma -> genSingleTextNode comma +> addSpaceIfSpaceAfterComma)
1899
+ | Choice2Of2 comma -> genSingleTextNode comma +> addSpaceIfSpaceAfterComma)
1898
1900
1899
1901
let longExpression = genTupleMultiline node
1900
1902
You can’t perform that action at this time.
0 commit comments