mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 10:45:47 +00:00
feature(markdown) throw() -> throw
This commit is contained in:
parent
0164eb4c56
commit
e20ad2083d
1 changed files with 3 additions and 3 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue