mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
store: removed duplicate method call for the same method
the get func was calling path's Join and clean method which is already being in internalGet(nodePath) func. Hence the func was getting called unnecessarily twice which is not needed. #6295
This commit is contained in:
parent
45079ec6c1
commit
754b9025c4
@ -141,8 +141,6 @@ func (s *store) Get(nodePath string, recursive, sorted bool) (*Event, error) {
|
||||
}
|
||||
}()
|
||||
|
||||
nodePath = path.Clean(path.Join("/", nodePath))
|
||||
|
||||
n, err := s.internalGet(nodePath)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
|
Loading…
x
Reference in New Issue
Block a user