diff --git a/plugin/store.go b/plugin/store.go index 8e96c11da4..4f9da32e41 100644 --- a/plugin/store.go +++ b/plugin/store.go @@ -188,9 +188,7 @@ func (ps *Store) GetAllByCap(capability string) ([]plugingetter.CompatPlugin, er * bypassing the daemon. For such tests, this check is necessary. */ if ps != nil { - ps.RLock() result = ps.getAllByCap(capability) - ps.RUnlock() } // Lookup with legacy model