Correct ineffassign

This commit is contained in:
Gábor Lipták 2021-03-22 14:11:30 -04:00 committed by GitHub
parent 8469108548
commit 49d19efd82
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()