Merge pull request #3425 from denis-sokolov/user-findtask-patch
chore(user): tiny cleanup in findTask function
This commit is contained in:
@@ -48,8 +48,8 @@ api.getModelPaths = function(req,res,next){
|
||||
---------------
|
||||
*/
|
||||
|
||||
findTask = function(req, res, next) {
|
||||
return task = res.locals.user.tasks[req.params.id];
|
||||
var findTask = function(req, res) {
|
||||
return res.locals.user.tasks[req.params.id];
|
||||
};
|
||||
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user