From ddf9bb5d68ccb95da69aae1244be014f7aacbb51 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michael=20B=C3=B6ckli?= Date: Thu, 19 Sep 2024 09:53:33 +0200 Subject: [PATCH] Rm unnecessary fmt Errorf --- internal/message_queue/nats/nats_connection/nats_connection.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/message_queue/nats/nats_connection/nats_connection.go b/internal/message_queue/nats/nats_connection/nats_connection.go index 9705a9563..13870b2e6 100644 --- a/internal/message_queue/nats/nats_connection/nats_connection.go +++ b/internal/message_queue/nats/nats_connection/nats_connection.go @@ -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