mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-11-14 22:23:42 +01:00
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:
@@ -1,6 +1,5 @@
|
||||
/* eslint-disable
|
||||
camelcase,
|
||||
handle-callback-err,
|
||||
no-return-assign,
|
||||
no-unused-vars,
|
||||
*/
|
||||
@@ -92,7 +91,7 @@ describe('ProjectManager - flushProject', function () {
|
||||
this.DocumentManager.flushDocIfLoadedWithLock = sinon.spy(
|
||||
(project_id, doc_id, callback) => {
|
||||
if (callback == null) {
|
||||
callback = function (error) {}
|
||||
callback = function () {}
|
||||
}
|
||||
if (doc_id === 'doc-id-1') {
|
||||
return callback(
|
||||
|
||||
Reference in New Issue
Block a user