mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-05-23 17:19:37 +02:00
Merge pull request #11995 from overleaf/em-unnecessary-returns
Decaf cleanup: unnecessary returns GitOrigin-RevId: e3c006b0e15095c8cbed2911269f704a7fdd1d57
This commit is contained in:
@@ -200,9 +200,9 @@ const ProjectController = {
|
||||
|
||||
ProjectDeleter.archiveProject(projectId, userId, function (err) {
|
||||
if (err != null) {
|
||||
return next(err)
|
||||
next(err)
|
||||
} else {
|
||||
return res.sendStatus(200)
|
||||
res.sendStatus(200)
|
||||
}
|
||||
})
|
||||
},
|
||||
@@ -213,9 +213,9 @@ const ProjectController = {
|
||||
|
||||
ProjectDeleter.unarchiveProject(projectId, userId, function (err) {
|
||||
if (err != null) {
|
||||
return next(err)
|
||||
next(err)
|
||||
} else {
|
||||
return res.sendStatus(200)
|
||||
res.sendStatus(200)
|
||||
}
|
||||
})
|
||||
},
|
||||
@@ -226,9 +226,9 @@ const ProjectController = {
|
||||
|
||||
ProjectDeleter.trashProject(projectId, userId, function (err) {
|
||||
if (err != null) {
|
||||
return next(err)
|
||||
next(err)
|
||||
} else {
|
||||
return res.sendStatus(200)
|
||||
res.sendStatus(200)
|
||||
}
|
||||
})
|
||||
},
|
||||
@@ -239,9 +239,9 @@ const ProjectController = {
|
||||
|
||||
ProjectDeleter.untrashProject(projectId, userId, function (err) {
|
||||
if (err != null) {
|
||||
return next(err)
|
||||
next(err)
|
||||
} else {
|
||||
return res.sendStatus(200)
|
||||
res.sendStatus(200)
|
||||
}
|
||||
})
|
||||
},
|
||||
@@ -490,7 +490,7 @@ const ProjectController = {
|
||||
// and does async.series
|
||||
const allInReconfirmNotificationPeriods =
|
||||
(results && results[0]) || []
|
||||
return cb(null, {
|
||||
cb(null, {
|
||||
list: fullEmails,
|
||||
allInReconfirmNotificationPeriods,
|
||||
})
|
||||
@@ -1394,7 +1394,7 @@ const ProjectController = {
|
||||
status: 'success',
|
||||
})
|
||||
}
|
||||
return callback(null, user)
|
||||
callback(null, user)
|
||||
}
|
||||
)
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user