Merge pull request #5352 from overleaf/jpa-no-var

[misc] fix eslint violations for `no-var`

GitOrigin-RevId: c52e82f3a8a993b8662cc5aa56e7b95ca3c55832
This commit is contained in:
Jakob Ackermann
2021-10-26 10:08:56 +02:00
committed by Copybot
parent b6bbbda852
commit a7fe64e86c
115 changed files with 299 additions and 314 deletions

View File

@@ -89,7 +89,7 @@ describe('ProjectStructureMongoLock', function () {
'renameEntity',
'addFolder',
]
for (var methodName of Array.from(LOCKING_UPDATE_METHODS)) {
for (const methodName of Array.from(LOCKING_UPDATE_METHODS)) {
it(`cannot call ProjectEntityMongoUpdateHandler.${methodName}`, function (done) {
const method = ProjectEntityMongoUpdateHandler[methodName]
const args = _.times(method.length - 2, _.constant(null))