gofmt utils.go file

This commit is contained in:
meijin 2021-08-17 19:17:35 +08:00
parent 5ed20845dd
commit 5334e6655a
1 changed files with 3 additions and 3 deletions

View File

@ -187,11 +187,11 @@ func PrintDetail(writer io.Writer, outputFormat string, list interface{}) error
}
func IsAddressLegal(address string) bool {
var isLegal bool
var isLegal bool
if address == "localhost" {
isLegal = true
} else if net.ParseIP(address) != nil {
isLegal = true
}
isLegal = true
}
return isLegal
}