Explorar el Código

removed unnecessary default argument

mserranom hace 6 años
padre
commit
9cee6c3d22
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      services/track-changes/app/coffee/LockManager.coffee

+ 1 - 1
services/track-changes/app/coffee/LockManager.coffee

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