Merge pull request #40588 from sfzhu93/Double_RLock

plugin: fix a double RLock bug
This commit is contained in:
Sebastiaan van Stijn 2020-02-28 00:30:06 +01:00 committed by GitHub
commit 38f52c9fec
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 2 deletions

View File

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