Skip to content

Commit

Permalink
Shorten the code
Browse files Browse the repository at this point in the history
  • Loading branch information
Greg Dubicki committed May 28, 2020
1 parent 4436c39 commit 384aa30
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,7 @@ func validateRequirements(dataplaneBin, haproxyBin string) error {
return nil
}

// HAproxy doesn't exit immediately when you pass incorrect log address
// so we try to do it on our own to fail fast
// HAproxy doesn't exit immediately when you pass incorrect log address, so we try to do it on our own to fail fast
func validateLogAddress(logAddress string) error {
// possible values taken from https://cbonte.github.io/haproxy-dconv/2.0/configuration.html#4.2-log
fi, err := os.Stat(logAddress)
Expand Down

0 comments on commit 384aa30

Please sign in to comment.