db/API.js: removed unuseful else clause, no functional changes

pull/3478/head
muxator 2018-08-29 02:16:24 +02:00
parent 610a6db8c8
commit 67ce19eddb
1 changed files with 2 additions and 1 deletions

View File

@ -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;