Skip to content

Commit

Permalink
fix decoding response with empty topic list
Browse files Browse the repository at this point in the history
  • Loading branch information
d-rk committed Mar 12, 2020
1 parent a68bc32 commit 89f6240
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion list_partition_reassignments_response.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down

0 comments on commit 89f6240

Please sign in to comment.