Skip to content

Commit

Permalink
Remove old fileExists function
Browse files Browse the repository at this point in the history
  • Loading branch information
webvictim committed Feb 25, 2021
1 parent 864a09f commit 7951275
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions lib/config/configuration.go
Original file line number Diff line number Diff line change
Expand Up @@ -1452,14 +1452,6 @@ func replaceHost(addr *utils.NetAddr, newHost string) {
addr.Addr = net.JoinHostPort(newHost, port)
}

func fileExists(fp string) bool {
_, err := os.Stat(fp)
if err != nil && os.IsNotExist(err) {
return false
}
return true
}

// validateRoles makes sure that value upassed to --roles flag is valid
func validateRoles(roles string) error {
for _, role := range splitRoles(roles) {
Expand Down

0 comments on commit 7951275

Please sign in to comment.