Skip to content

Commit

Permalink
Fix redundant extra line insertion
Browse files Browse the repository at this point in the history
  • Loading branch information
kamilmielnik committed Aug 19, 2018
1 parent a6a98d4 commit 5daea84
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 5daea84

Please sign in to comment.