optimize the code of the command line (#3614)
This commit is contained in:
committed by
GitHub
Unverified
parent
74255f711e
commit
bae0b4d7c0
@@ -134,6 +134,9 @@ type PortsRange struct {
|
||||
type PortsRangeSlice []PortsRange
|
||||
|
||||
func (p PortsRangeSlice) String() string {
|
||||
if len(p) == 0 {
|
||||
return ""
|
||||
}
|
||||
strs := []string{}
|
||||
for _, v := range p {
|
||||
if v.Single > 0 {
|
||||
|
||||
Reference in New Issue
Block a user