Merge pull request #12793 from gliptak/patch-1

Correct ineffassign
This commit is contained in:
Piotr Tabor
2021-03-23 09:19:26 +01:00
committed by GitHub

View File

@@ -114,7 +114,6 @@ func (baseReadTx *baseReadTx) UnsafeRange(bucketName, key, endKey []byte, limit
}
if !lockHeld {
baseReadTx.txMu.Lock()
lockHeld = true
}
c := bucket.Cursor()
baseReadTx.txMu.Unlock()