Merge pull request #5367 from overleaf/jpa-node-handle-callback-err

[misc] fix eslint violations for node/handle-callback-err

GitOrigin-RevId: 83a4900e8861010df1917bff49382bd9c93375bd
This commit is contained in:
Jakob Ackermann
2021-10-28 08:03:26 +00:00
committed by Copybot
parent 12b90cac69
commit 7f9fd00bda
181 changed files with 746 additions and 658 deletions
+8 -9
View File
@@ -1,6 +1,5 @@
/* eslint-disable
camelcase,
handle-callback-err,
valid-typeof,
*/
// TODO: This file was created by bulk-decaffeinate.
@@ -22,7 +21,7 @@ const Settings = require('@overleaf/settings')
module.exports = HttpController = {
getDoc(req, res, next) {
if (next == null) {
next = function (error) {}
next = function () {}
}
const { project_id } = req.params
const { doc_id } = req.params
@@ -73,7 +72,7 @@ module.exports = HttpController = {
getRawDoc(req, res, next) {
if (next == null) {
next = function (error) {}
next = function () {}
}
const { project_id } = req.params
const { doc_id } = req.params
@@ -93,7 +92,7 @@ module.exports = HttpController = {
getAllDocs(req, res, next) {
if (next == null) {
next = function (error) {}
next = function () {}
}
const { project_id } = req.params
logger.log({ project_id }, 'getting all docs')
@@ -137,7 +136,7 @@ module.exports = HttpController = {
getAllRanges(req, res, next) {
if (next == null) {
next = function (error) {}
next = function () {}
}
const { project_id } = req.params
logger.log({ project_id }, 'getting all ranges')
@@ -158,7 +157,7 @@ module.exports = HttpController = {
updateDoc(req, res, next) {
if (next == null) {
next = function (error) {}
next = function () {}
}
const { project_id } = req.params
const { doc_id } = req.params
@@ -266,7 +265,7 @@ module.exports = HttpController = {
archiveAllDocs(req, res, next) {
if (next == null) {
next = function (error) {}
next = function () {}
}
const { project_id } = req.params
logger.log({ project_id }, 'archiving all docs')
@@ -291,7 +290,7 @@ module.exports = HttpController = {
unArchiveAllDocs(req, res, next) {
if (next == null) {
next = function (error) {}
next = function () {}
}
const { project_id } = req.params
logger.log({ project_id }, 'unarchiving all docs')
@@ -305,7 +304,7 @@ module.exports = HttpController = {
destroyAllDocs(req, res, next) {
if (next == null) {
next = function (error) {}
next = function () {}
}
const { project_id } = req.params
logger.log({ project_id }, 'destroying all docs')