commit | beb3cfa3d0cba8932bb9741060ac8ad6844c5304 | [log] [tgz] |
---|---|---|
author | Scott Baker <smbaker@gmail.com> | Tue Oct 01 14:44:30 2019 -0700 |
committer | Scott Baker <scottb@onlab.us> | Wed Oct 02 02:25:39 2019 +0000 |
tree | 27cd77ee23308bf819ff6945317047c1e49fd3fe | |
parent | 714ca57cfe3f88111574d20b9652262a411532bb [diff] [blame] |
VOL-1967 move api-server to separate repository Change-Id: I21b85be74205805be15f8a85e53a903d16785671
diff --git a/vendor/github.com/Shopify/sarama/metadata_request.go b/vendor/github.com/Shopify/sarama/metadata_request.go index 17dc428..1b590d3 100644 --- a/vendor/github.com/Shopify/sarama/metadata_request.go +++ b/vendor/github.com/Shopify/sarama/metadata_request.go
@@ -37,15 +37,8 @@ if err != nil { return err } - if size < 0 { - return nil - } else { - topicCount := size - if topicCount == 0 { - return nil - } - - r.Topics = make([]string, topicCount) + if size > 0 { + r.Topics = make([]string, size) for i := range r.Topics { topic, err := pd.getString() if err != nil {