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) }