mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-07 20:31:06 -05:00
removed unnecessary default argument
This commit is contained in:
parent
0cb4f3c24c
commit
9cee6c3d22
1 changed files with 1 additions and 1 deletions
|
@ -66,7 +66,7 @@ module.exports = LockManager =
|
|||
return callback(new Error("tried to release timed out lock"))
|
||||
callback(err,result)
|
||||
|
||||
runWithLock: (key, runner = ( (releaseLock = (error) ->) -> ), callback = ( (error) -> )) ->
|
||||
runWithLock: (key, runner, callback = ( (error) -> )) ->
|
||||
LockManager.getLock key, (error, lockValue) ->
|
||||
return callback(error) if error?
|
||||
runner (error1) ->
|
||||
|
|
Loading…
Reference in a new issue