Skip to content
This repository was archived by the owner on Feb 10, 2025. It is now read-only.

Commit 3b154e1

Browse files
committed
fix: cert declared but not used
Signed-off-by: marcin.janas <[email protected]>
1 parent d6af522 commit 3b154e1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

connector/connector.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ func (c *TlsRabbitConnector) CreateConnection(connectionURL string) (*amqp.Conne
106106

107107
certFilePath := os.Getenv(config.CertFile)
108108
keyFilePath := os.Getenv(config.KeyFile)
109-
if cert, err := c.KeyLoader.LoadKeyPair(certFilePath, keyFilePath); err == nil {
109+
if _, err := c.KeyLoader.LoadKeyPair(certFilePath, keyFilePath); err == nil {
110110
c.TlsConfig.Certificates = append(c.TlsConfig.Certificates, cert)
111111
} else {
112112
log.WithFields(log.Fields{

0 commit comments

Comments
 (0)