diff --git a/kafka/consumer.go b/kafka/consumer.go index efc54d00e..51a4d2d03 100644 --- a/kafka/consumer.go +++ b/kafka/consumer.go @@ -1026,7 +1026,7 @@ func (c *Consumer) handleRebalanceEvent(channel chan Event, rkev *C.rd_kafka_eve } - if channel != nil && c.appRebalanceEnable && c.rebalanceCb == nil { + if c.appRebalanceEnable && c.rebalanceCb == nil { // Channel-based consumer with rebalancing enabled, // return the rebalance event and rely on the application // to call *Assign() / *Unassign().