From 83b548144b934deaffbe5ba063fbc876b7cd38a2 Mon Sep 17 00:00:00 2001 From: Daisuke Kobayashi Date: Sun, 21 Apr 2024 00:19:57 +0900 Subject: [PATCH] Update src/go/rpk/pkg/cli/cluster/partitions/list.go Co-authored-by: Rogger Vasquez <59714880+r-vasquez@users.noreply.github.com> --- src/go/rpk/pkg/cli/cluster/partitions/list.go | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/go/rpk/pkg/cli/cluster/partitions/list.go b/src/go/rpk/pkg/cli/cluster/partitions/list.go index a28fe5b1becd9..ff029d691c8c4 100644 --- a/src/go/rpk/pkg/cli/cluster/partitions/list.go +++ b/src/go/rpk/pkg/cli/cluster/partitions/list.go @@ -287,9 +287,5 @@ func replicaOnBroker(replicas adminapi.Replicas, brokers []int) bool { } } - if foundCount == len(brokers) { - return true - } else { - return false - } + return foundCount == len(brokers) }