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
commit 456e129422
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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()