Browse Source

Code review fix

Willem van Bergen 11 years ago
parent
commit
c5df84256b
1 changed files with 1 additions and 4 deletions
  1. 1 4
      client.go

+ 1 - 4
client.go

@@ -245,10 +245,7 @@ func (client *Client) disconnectBroker(broker *Broker) {
 }
 }
 
 
 func (client *Client) Closed() bool {
 func (client *Client) Closed() bool {
-	if client.brokers == nil {
-		return true
-	}
-	return false
+	return client.brokers == nil
 }
 }
 
 
 func (client *Client) refreshMetadata(topics []string, retries int) error {
 func (client *Client) refreshMetadata(topics []string, retries int) error {