Skip to content

Commit 04edbb0

Browse files
eternnoirfjl
authored andcommitted
node: Remove redundant filepath.Join in parsePersistentNodes (#3300)
1 parent e1c1fce commit 04edbb0

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

node/config.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -365,12 +365,11 @@ func (c *Config) TrusterNodes() []*discover.Node {
365365

366366
// parsePersistentNodes parses a list of discovery node URLs loaded from a .json
367367
// file from within the data directory.
368-
func (c *Config) parsePersistentNodes(file string) []*discover.Node {
368+
func (c *Config) parsePersistentNodes(path string) []*discover.Node {
369369
// Short circuit if no node config is present
370370
if c.DataDir == "" {
371371
return nil
372372
}
373-
path := filepath.Join(c.DataDir, file)
374373
if _, err := os.Stat(path); err != nil {
375374
return nil
376375
}

0 commit comments

Comments
 (0)