Skip to content

Commit

Permalink
Rm unnecessary fmt Errorf
Browse files Browse the repository at this point in the history
  • Loading branch information
boecklim authored and pawellewandowski98 committed Oct 2, 2024
1 parent cd9f9d0 commit b6da3f7
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 b6da3f7

Please sign in to comment.