mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
Correct ineffassign
This commit is contained in:
parent
8469108548
commit
49d19efd82
@ -114,7 +114,6 @@ func (baseReadTx *baseReadTx) UnsafeRange(bucketName, key, endKey []byte, limit
|
|||||||
}
|
}
|
||||||
if !lockHeld {
|
if !lockHeld {
|
||||||
baseReadTx.txMu.Lock()
|
baseReadTx.txMu.Lock()
|
||||||
lockHeld = true
|
|
||||||
}
|
}
|
||||||
c := bucket.Cursor()
|
c := bucket.Cursor()
|
||||||
baseReadTx.txMu.Unlock()
|
baseReadTx.txMu.Unlock()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user