From e9f8f12f3ac0a4cf5e80304866627ccf7bfe5f1d Mon Sep 17 00:00:00 2001 From: Michael Williamson Date: Mon, 20 Jun 2016 12:11:21 +0100 Subject: Remove reassignment --- lib/document-to-html.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'lib') diff --git a/lib/document-to-html.js b/lib/document-to-html.js index 4c58979..740fc30 100644 --- a/lib/document-to-html.js +++ b/lib/document-to-html.js @@ -64,13 +64,11 @@ function DocumentConversion(options) { } }); } - html = replaceDeferred(html); - var writer = writers.writer({ prettyPrint: options.prettyPrint, outputFormat: options.outputFormat }); - Html.write(writer, Html.simplify(html)); + Html.write(writer, Html.simplify(replaceDeferred(html))); return new results.Result(writer.asString(), messages); }); } -- cgit v1.2.3