Skip to content

Commit

Permalink
Merge pull request #1 from kamilmielnik/bugfix/remove-redundant-extra…
Browse files Browse the repository at this point in the history
…-line-insertion

Fix redundant extra line insertion
  • Loading branch information
yuriyyakym authored Aug 19, 2018
2 parents a6a98d4 + 5daea84 commit 69bc37e
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions lib/printer.js
Original file line number Diff line number Diff line change
Expand Up @@ -691,9 +691,7 @@ function genericPrintNoParens(path, options, print) {
parts.push(lines);

if (i < len - 1) {
// Add an extra line break if the previous object property
// had a multi-line value.
parts.push(separator + (multiLine ? "\n\n" : "\n"));
parts.push(separator + "\n");
allowBreak = !multiLine;
} else if (len !== 1 && isTypeAnnotation) {
parts.push(separator);
Expand Down

0 comments on commit 69bc37e

Please sign in to comment.