Selaa lähdekoodia

fix decoding response with empty topic list

Dirk Wilden 4 vuotta sitten
vanhempi
commit
89f6240301
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  1. 1 1
      list_partition_reassignments_response.go

+ 1 - 1
list_partition_reassignments_response.go

@@ -110,7 +110,7 @@ func (r *ListPartitionReassignmentsResponse) decode(pd packetDecoder, version in
 	}
 
 	numTopics, err := pd.getCompactArrayLength()
-	if err != nil || numTopics == 0 {
+	if err != nil {
 		return err
 	}