refactor: fix build warnings (#1090)
This commit is contained in:
@@ -187,6 +187,7 @@ type PortStat struct {
|
||||
PortReachableTo []string `json:"portReachableTo"`
|
||||
}
|
||||
|
||||
// NewPortStat create a PortStat from ipPort str
|
||||
func NewPortStat(ipPort string) (*PortStat, error) {
|
||||
if ipPort == "" {
|
||||
return &PortStat{}, nil
|
||||
|
||||
Reference in New Issue
Block a user