db/PadManager: early return, no functional changes

This commit is contained in:
muxator 2018-08-29 01:44:13 +02:00
parent 391bd79e03
commit 12f224ae72

View file

@ -159,10 +159,10 @@ exports.getPad = function(id, text, callback)
if(pad != null)
{
callback(null, pad);
return;
}
//try to load pad
else
{
pad = new Pad(id);
//initalize the pad
@ -173,7 +173,6 @@ exports.getPad = function(id, text, callback)
padList.addPad(id);
callback(null, pad);
});
}
}
exports.listAllPads = function(cb)