From 5d5932788840fa44a7d6e490a189fec9d9661492 Mon Sep 17 00:00:00 2001 From: r-vasquez Date: Tue, 3 Dec 2024 12:21:34 -0800 Subject: [PATCH] rpk: remove unused nolint comment --- src/go/rpk/pkg/adminapi/api_broker.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/go/rpk/pkg/adminapi/api_broker.go b/src/go/rpk/pkg/adminapi/api_broker.go index e5e54aa1234d2..f1340eb422357 100644 --- a/src/go/rpk/pkg/adminapi/api_broker.go +++ b/src/go/rpk/pkg/adminapi/api_broker.go @@ -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) }