mirror of https://github.com/dapr/cli.git
gofmt utils.go file
This commit is contained in:
parent
5ed20845dd
commit
5334e6655a
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue