Skip to content

Commit 384aa30

Browse files
author
Greg Dubicki
committed
Shorten the code
1 parent 4436c39 commit 384aa30

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

main.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,7 @@ func validateRequirements(dataplaneBin, haproxyBin string) error {
6262
return nil
6363
}
6464

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

0 commit comments

Comments
 (0)