feature(markdown) throw() -> throw

This commit is contained in:
coderaiser 2016-03-28 16:15:04 -04:00
parent 0164eb4c56
commit e20ad2083d

View file

@ -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) {