Просмотр исходного кода

fixed an error check analysis issue

Varun 7 лет назад
Родитель
Сommit
bdafe52dd1
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      consumer.go

+ 1 - 1
consumer.go

@@ -779,7 +779,7 @@ func (bc *brokerConsumer) handleResponses() {
 
 func (bc *brokerConsumer) abort(err error) {
 	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 {
 		child.sendError(err)