aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/document-to-html.js2
1 files changed, 1 insertions, 1 deletions
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);
});
}