refactor store.go remove extra assignment

This commit is contained in:
Xiang Li 2013-10-08 22:12:00 -07:00
parent e597947bd8
commit 4bf57537b5

View File

@ -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