From ffa10aa8d40fcb6a19043026b4e1d3d3df3d13f2 Mon Sep 17 00:00:00 2001 From: Michael Williamson Date: Mon, 20 Jun 2016 12:10:48 +0100 Subject: Remove unnecessary promises.when --- lib/document-to-html.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/document-to-html.js b/lib/document-to-html.js index 747e12f..4c58979 100644 --- a/lib/document-to-html.js +++ b/lib/document-to-html.js @@ -71,7 +71,7 @@ function DocumentConversion(options) { outputFormat: options.outputFormat }); Html.write(writer, Html.simplify(html)); - return promises.when(new results.Result(writer.asString(), messages)); + return new results.Result(writer.asString(), messages); }); } -- cgit v1.2.3