Skip to content

Commit

Permalink
fix: lint problem
Browse files Browse the repository at this point in the history
  • Loading branch information
philippseith committed Sep 18, 2021
1 parent 6086e33 commit 45fa8f5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion httpconnection.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,9 @@ func NewHTTPConnection(ctx context.Context, address string, options ...func(*htt

for _, option := range options {
if option != nil {
option(httpConn)
if err := option(httpConn); err != nil {
return nil, err
}
}
}

Expand Down

0 comments on commit 45fa8f5

Please sign in to comment.