Skip to content

Commit

Permalink
remove useless fmt.Sprintf()
Browse files Browse the repository at this point in the history
  • Loading branch information
joelrebel committed Dec 19, 2023
1 parent 10b6d97 commit 3b97af6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmd/common.go
Original file line number Diff line number Diff line change
Expand Up @@ -113,15 +113,15 @@ func FirmwareSetByVendorModel(ctx context.Context, vendor, model string, client
if vendor == "" {
return []serverservice.ComponentFirmwareSet{}, errors.Wrap(
ErrFwSetByVendorModel,
fmt.Sprintf("got empty vendor attribute"),
"got empty vendor attribute",
)
}

model = strings.TrimSpace(model)
if model == "" {
return []serverservice.ComponentFirmwareSet{}, errors.Wrap(
ErrFwSetByVendorModel,
fmt.Sprintf("got empty model attribute"),
"got empty model attribute",
)
}

Expand Down

0 comments on commit 3b97af6

Please sign in to comment.