Skip to content

Commit

Permalink
Merge pull request #685 from dgryski/client-ineffassign
Browse files Browse the repository at this point in the history
client: fix returning the wrong error
  • Loading branch information
eapache authored Jun 22, 2016
2 parents 2979d3c + a3b3155 commit fd0c7af
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client.go
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,7 @@ func (client *client) Leader(topic string, partitionID int32) (*Broker, error) {
leader, err := client.cachedLeader(topic, partitionID)

if leader == nil {
err := client.RefreshMetadata(topic)
err = client.RefreshMetadata(topic)
if err != nil {
return nil, err
}
Expand Down

0 comments on commit fd0c7af

Please sign in to comment.