Skip to content

Commit

Permalink
Rm unnecessary fmt Errorf
Browse files Browse the repository at this point in the history
  • Loading branch information
boecklim committed Sep 19, 2024
1 parent e8d0770 commit ddf9bb5
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ func New(natsURL string, logger *slog.Logger) (*nats.Conn, error) {

nc, err = nats.Connect(natsURL, opts...)
if err != nil {
return nil, errors.Join(ErrNatsConnectionFailed, fmt.Errorf("error: %v", err))
return nil, errors.Join(ErrNatsConnectionFailed, err)
}

return nc, nil
Expand Down

0 comments on commit ddf9bb5

Please sign in to comment.