Skip to content

Commit

Permalink
api: rest: Fix a lint error
Browse files Browse the repository at this point in the history
  • Loading branch information
ish-hcc committed Aug 21, 2024
1 parent f323b86 commit e838c0c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/api/rest/controller/software.go
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ func RegisterSoftware(c echo.Context) error {
return common.ReturnErrorMsg(c, "Please provide the os version")
}

if softwareRegisterReq.MatchNames == nil || len(softwareRegisterReq.MatchNames) == 0 {
if len(softwareRegisterReq.MatchNames) == 0 {
return common.ReturnErrorMsg(c, "Please provide the match names")
}

Expand Down

0 comments on commit e838c0c

Please sign in to comment.