mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
refactor store.go remove extra assignment
This commit is contained in:
parent
e597947bd8
commit
4bf57537b5
@ -119,9 +119,7 @@ func (s *Store) Update(nodePath string, newValue string, expireTime time.Time, i
|
||||
if n.IsDir() {
|
||||
// if the node is a directory, we cannot update value
|
||||
s.Stats.Inc(UpdateFail)
|
||||
|
||||
err := etcdErr.NewError(etcdErr.EcodeNotFile, nodePath, index, term)
|
||||
return nil, err
|
||||
return nil, etcdErr.NewError(etcdErr.EcodeNotFile, nodePath, index, term)
|
||||
}
|
||||
|
||||
e.PrevValue = n.Value
|
||||
|
Loading…
x
Reference in New Issue
Block a user