A lot of refactoring, and etc #232

Open
Rudxain wants to merge 62 commits from Rudxain/patch-1 into master
Showing only changes of commit 9e0309a33b - Show all commits

View file

@ -5,8 +5,8 @@ module.exports = async (app, req, res) => {
let songID = req.params.song
req.gdRequest('getGJSongInfo', {songID: songID}, function(err, resp, body) {
return err ?
res.sendError(400) :
res.send(!body.startsWith("-") && body.length > 10)
return err
? res.sendError(400)
: res.send(!body.startsWith("-") && body.length > 10)
})
}
}