db/API.js: removed unuseful else clause, no functional changes
parent
610a6db8c8
commit
67ce19eddb
|
@ -723,8 +723,9 @@ exports.createPad = function(padID, text, callback)
|
||||||
callback(new customError("createPad can't create group pads","apierror"));
|
callback(new customError("createPad can't create group pads","apierror"));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
//check for url special characters
|
//check for url special characters
|
||||||
else if(padID.match(/(\/|\?|&|#)/))
|
if(padID.match(/(\/|\?|&|#)/))
|
||||||
{
|
{
|
||||||
callback(new customError("malformed padID: Remove special characters","apierror"));
|
callback(new customError("malformed padID: Remove special characters","apierror"));
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Reference in New Issue