diff --git a/lib/index.js b/lib/index.js index 1ff68ad0e..4fb2a7f50 100644 --- a/lib/index.js +++ b/lib/index.js @@ -336,7 +336,7 @@ module.exports.render = function(options, cb) { }); } - options.data ? binding.render(options) : binding.renderFile(options); + return options.data ? binding.render(options) : binding.renderFile(options); }; /**