commit | 8487c5da136ee6f3c3acbad25681bd6b51238fad | [log] [tgz] |
---|---|---|
author | Scott Baker <smbaker@gmail.com> | Fri Oct 18 12:49:46 2019 -0700 |
committer | Scott Baker <smbaker@gmail.com> | Fri Oct 18 13:28:20 2019 -0700 |
tree | ba32f95038ff5a31598fb972c2d58d08d20cf6d4 | |
parent | 5620c670c6fce4df3dc06a6a1ffceb3c3472fc9e [diff] [blame] |
VOL-2112 move to voltha-lib-go Change-Id: I3435b8acb982deeab6b6ac28e798d7722ad01d0a
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 {