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
@@ -83,7 +83,7 @@ describe('LockManager - getting the lock', function () {
this.LockManager.LOCK_TEST_INTERVAL = 5
this.LockManager._tryLock = function (key, namespace, callback) {
if (callback == null) {
callback = function (error, isFree) {}
callback = function () {}
}
if (Date.now() - startTime < 20 || tries < 2) {
tries = tries + 1
@@ -135,7 +135,7 @@ describe('LockManager - getting the lock', function () {
this.LockManager.LOCK_TEST_INTERVAL = 1
this.LockManager._tryLock = function (key, namespace, callback) {
if (callback == null) {
callback = function (error, gotLock, lockValue) {}
callback = function () {}
}
if (locked) {
return callback(null, false)