Code style and performance fixes

This commit is contained in:
NGPixel
2016-10-17 19:52:04 -04:00
parent 847c81946a
commit 9454065ab9
12 changed files with 57 additions and 54 deletions

View File

@@ -92,7 +92,7 @@ router.post('/img', lcdata.uploadImgHandler, (req, res, next) => {
return {
ok: false,
msg: r.reason().message
}
};
}
});
res.json({ ok: true, results: uplResults });

View File

@@ -21,7 +21,7 @@ module.exports = (socket) => {
cb = cb || _.noop;
upl.getUploadsFolders().then((f) => {
return cb(f) || true;
})
});
});
socket.on('uploadsCreateFolder', (data, cb) => {