From c1fb07fcda5f57152fd97840c4c0d92e4e33e004 Mon Sep 17 00:00:00 2001 From: LightningTipBot <88730856+LightningTipBot@users.noreply.github.com> Date: Sun, 9 Jan 2022 22:44:06 +0000 Subject: [PATCH] mutex return (#280) Co-authored-by: callebtc <93376500+callebtc@users.noreply.github.com> --- internal/runtime/mutex/mutex.go | 2 -- 1 file changed, 2 deletions(-) diff --git a/internal/runtime/mutex/mutex.go b/internal/runtime/mutex/mutex.go index 99003a8..17f77d1 100644 --- a/internal/runtime/mutex/mutex.go +++ b/internal/runtime/mutex/mutex.go @@ -53,11 +53,9 @@ func LockWithContext(ctx context.Context, s string) { uid := ctx.Value("uid").(string) if len(uid) == 0 { log.Error("[Mutex] LockWithContext: uid is empty!") - return } if len(s) == 0 { log.Error("[Mutex] LockWithContext: s is empty!") - return } // sync mutex to sync checkSoftLock with the increment of nLocks // same user can't lock the same object multiple times