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 d987146
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 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
4 changes: 2 additions & 2 deletions src/language-html/printer-html.js
Expand Up @@ -3,7 +3,7 @@
const assert = require("assert");
const {
builders,
utils: { mapDoc, normalizeParts, normalizeDoc },
utils: { mapDoc, normalizeParts },
} = require("../document");
const { replaceEndOfLineWith } = require("../common/util");
const { print: printFrontMatter } = require("../utils/front-matter");
Expand Down 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 d987146

Please sign in to comment.