From a97b47af1bf6b7b88eeb6e89393a1125a0ad5d1a Mon Sep 17 00:00:00 2001 From: Noah Metz Date: Sun, 23 Jul 2023 23:55:32 -0600 Subject: [PATCH] fix --- lockable.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lockable.go b/lockable.go index 721607e..b192b00 100644 --- a/lockable.go +++ b/lockable.go @@ -425,9 +425,7 @@ func LockLockables(context *StateContext, to_lock []Lockable, new_owner Lockable if owner.ID() == new_owner.ID() { continue } else { - err := UpdateStates(context, new_owner, NewLockMap( - NewLockInfo(owner, []string{"take_lock"}) - ), func(context *StateContext)(error){ + err := UpdateStates(context, new_owner, NewLockInfo(owner, []string{"take_lock"}), func(context *StateContext)(error){ return LockLockables(context, req.Requirements(), req) }) if err != nil {