Skip to content

Commit

Permalink
remove redundant error check
Browse files Browse the repository at this point in the history
  • Loading branch information
lovromazgon committed Nov 2, 2023
1 parent 21c1ede commit b278cb9
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions source/franz.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,11 +52,6 @@ func NewFranzConsumer(ctx context.Context, cfg Config) (*FranzConsumer, error) {
return nil, fmt.Errorf("failed to create kafka client: %w", err)
}

if err != nil {
cl.Close()
return nil, err
}

return &FranzConsumer{
client: cl,
acker: newBatchAcker(cl, 1000),
Expand Down

0 comments on commit b278cb9

Please sign in to comment.