Skip to content

Commit

Permalink
Remove doc check
Browse files Browse the repository at this point in the history
  • Loading branch information
fisker committed Aug 25, 2020
1 parent 875b478 commit 1ea7d95
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
4 changes: 0 additions & 4 deletions src/document/doc-utils.js
Expand Up @@ -226,10 +226,6 @@ function normalizeParts(parts) {
continue;
}

if (part.type === "fill" && part.parts.length === 0) {
continue;
}

if (part.type === "concat") {
restParts.unshift(...part.parts);
continue;
Expand Down
2 changes: 1 addition & 1 deletion src/language-html/printer-html.js
Expand Up @@ -87,7 +87,7 @@ function embed(path, print, textToDoc, options) {
{ parser },
{ stripTrailingHardline: true }
);
isEmpty = doc === "" || normalizeDoc(doc).parts.length === 0;
isEmpty = doc === "";
}

return concat([
Expand Down

0 comments on commit 1ea7d95

Please sign in to comment.