Skip to content

Commit 520e06a

Browse files
committed
fix: do not break call expression parameter
1 parent f099fa9 commit 520e06a

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/print/CallExpression.js

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,7 @@ const printCallExpression = (node, path, print) => {
2323
// there is exactly one object parameter
2424
parts.push(mappedArguments[0], ")");
2525
} else {
26-
parts.push(
27-
indent([softline, join([",", line], mappedArguments)]),
28-
softline,
29-
")"
30-
);
26+
parts.push(indent([join([", "], mappedArguments)]), ")");
3127
}
3228

3329
wrapExpressionIfNeeded(path, parts, node);

0 commit comments

Comments
 (0)