Skip to content

Commit

Permalink
fmt fix
Browse files Browse the repository at this point in the history
  • Loading branch information
SeeFlowerX committed Aug 22, 2023
1 parent 31ba682 commit 04d1897
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions user/config/config_syscall.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,11 @@ func (this *SysCallArgs) ParseFlags(value int32) string {
info = append(info, k)
}
}
return "(" + strings.Join(info, "|") + ")"
if len(info) > 0 {
return "(" + strings.Join(info, "|") + ")"
} else {
return ""
}
}

func (this *SysCallArgs) ParseProt(value int32) string {
Expand All @@ -56,7 +60,11 @@ func (this *SysCallArgs) ParseProt(value int32) string {
info = append(info, k)
}
}
return "(" + strings.Join(info, "|") + ")"
if len(info) > 0 {
return "(" + strings.Join(info, "|") + ")"
} else {
return ""
}
}

func (this *SysCallArgs) GetConfig() *SPointTypes {
Expand Down

0 comments on commit 04d1897

Please sign in to comment.