diff options
author | FrankWang <eternnoir@gmail.com> | 2016-11-18 19:45:06 +0800 |
---|---|---|
committer | Felix Lange <fjl@twurst.com> | 2016-11-18 19:45:06 +0800 |
commit | 04edbb0703142f792522e29a557069a3e52705f5 (patch) | |
tree | 19dfad38e4e57308252c402d99564e2f6186c07f /node | |
parent | e1c1fce92c3c3133f2ee76a78400a609b3a0f4ec (diff) | |
download | go-tangerine-04edbb0703142f792522e29a557069a3e52705f5.tar.gz go-tangerine-04edbb0703142f792522e29a557069a3e52705f5.tar.zst go-tangerine-04edbb0703142f792522e29a557069a3e52705f5.zip |
node: Remove redundant filepath.Join in parsePersistentNodes (#3300)
Diffstat (limited to 'node')
-rw-r--r-- | node/config.go | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/node/config.go b/node/config.go index 62655f237..8d85b7ff8 100644 --- a/node/config.go +++ b/node/config.go @@ -365,12 +365,11 @@ func (c *Config) TrusterNodes() []*discover.Node { // parsePersistentNodes parses a list of discovery node URLs loaded from a .json // file from within the data directory. -func (c *Config) parsePersistentNodes(file string) []*discover.Node { +func (c *Config) parsePersistentNodes(path string) []*discover.Node { // Short circuit if no node config is present if c.DataDir == "" { return nil } - path := filepath.Join(c.DataDir, file) if _, err := os.Stat(path); err != nil { return nil } |