Browse Source

fixed an error check analysis issue

Varun 6 years ago
parent
commit
bdafe52dd1
1 changed files with 1 additions and 1 deletions
  1. 1 1
      consumer.go

+ 1 - 1
consumer.go

@@ -779,7 +779,7 @@ func (bc *brokerConsumer) handleResponses() {
 
 
 func (bc *brokerConsumer) abort(err error) {
 func (bc *brokerConsumer) abort(err error) {
 	bc.consumer.abandonBrokerConsumer(bc)
 	bc.consumer.abandonBrokerConsumer(bc)
-	bc.broker.Close() // we don't care about the error this might return, we already have one
+	_ = bc.broker.Close() // we don't care about the error this might return, we already have one
 
 
 	for child := range bc.subscriptions {
 	for child := range bc.subscriptions {
 		child.sendError(err)
 		child.sendError(err)