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-27 11:49:18 +02:00
committed by Copybot
parent 12b90cac69
commit 7f9fd00bda
181 changed files with 746 additions and 658 deletions

View File

@@ -1,6 +1,5 @@
/* eslint-disable
camelcase,
handle-callback-err,
no-return-assign,
no-unused-vars,
*/
@@ -33,7 +32,7 @@ module.exports = LatexRunner = {
runLatex(project_id, options, callback) {
let command
if (callback == null) {
callback = function (error) {}
callback = function () {}
}
let {
directory,
@@ -167,7 +166,7 @@ module.exports = LatexRunner = {
killLatex(project_id, callback) {
if (callback == null) {
callback = function (error) {}
callback = function () {}
}
const id = `${project_id}`
logger.log({ id }, 'killing running compile')