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

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