removed unnecessary default argument

This commit is contained in:
mserranom 2020-02-17 18:32:47 +01:00
parent 0cb4f3c24c
commit 9cee6c3d22

View file

@ -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) ->