From a5d2a2b32f80f2062d9f20fbcf6c56a2b5d1dc99 Mon Sep 17 00:00:00 2001 From: arriven <20084245+Arriven@users.noreply.github.com> Date: Sun, 31 Jul 2022 16:43:17 +0300 Subject: [PATCH] make linter happy --- src/utils/locker.go | 1 + 1 file changed, 1 insertion(+) diff --git a/src/utils/locker.go b/src/utils/locker.go index 232caa65..3712cfc2 100644 --- a/src/utils/locker.go +++ b/src/utils/locker.go @@ -8,6 +8,7 @@ type Locker struct { func (m *Locker) Lock(key string) func() { value, _ := m.mutexes.LoadOrStore(key, &sync.Mutex{}) + mtx, ok := value.(*sync.Mutex) if ok { mtx.Lock()