From e20ad2083d622e64e75f48987e4b4d54e078a72e Mon Sep 17 00:00:00 2001 From: coderaiser Date: Mon, 28 Mar 2016 16:15:04 -0400 Subject: [PATCH] feature(markdown) throw() -> throw --- lib/server/markdown.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/server/markdown.js b/lib/server/markdown.js index 118a7667..89b0a177 100644 --- a/lib/server/markdown.js +++ b/lib/server/markdown.js @@ -14,13 +14,13 @@ function check(name, request, callback) { if (typeof name !== 'string') - throw(Error('name should be string!')); + throw Error('name should be string!'); else if (!request) - throw(Error('request could not be empty!')); + throw Error('request could not be empty!'); else if (typeof callback !== 'function') - throw(Error('callback should be function!')); + throw Error('callback should be function!'); } module.exports = function(name, request, callback) {