Skip to content

Commit

Permalink
No need check Meta.Dir twice
Browse files Browse the repository at this point in the history
  • Loading branch information
oiooj committed Feb 20, 2016
1 parent c1de263 commit f1c0275
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions cmd/influxd/run/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -125,11 +125,6 @@ func NewServer(c *Config, buildInfo *BuildInfo) (*Server, error) {
}
}

// Create the root directory if it doesn't already exist.
if err := os.MkdirAll(c.Meta.Dir, 0777); err != nil {
return nil, fmt.Errorf("mkdir all: %s", err)
}

// 0.11 we no longer use peers.json. Remove the file if we have one on disk.
os.RemoveAll(filepath.Join(c.Meta.Dir, "peers.json"))

Expand Down

0 comments on commit f1c0275

Please sign in to comment.