Skip to content

Commit

Permalink
rpk: remove unused nolint comment
Browse files Browse the repository at this point in the history
  • Loading branch information
r-vasquez committed Dec 3, 2024
1 parent 2212e05 commit 5d59327
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/go/rpk/pkg/adminapi/api_broker.go
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ type DecommissionStatusResponse struct {
func (a *AdminAPI) Brokers(ctx context.Context) ([]Broker, error) {
var bs []Broker
defer func() {
sort.Slice(bs, func(i, j int) bool { return bs[i].NodeID < bs[j].NodeID }) //nolint:revive // return inside this deferred function is for the sort's less function
sort.Slice(bs, func(i, j int) bool { return bs[i].NodeID < bs[j].NodeID })
}()
return bs, a.sendAny(ctx, http.MethodGet, brokersEndpoint, nil, &bs)
}
Expand Down

0 comments on commit 5d59327

Please sign in to comment.