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

Commit

Permalink
fix: cert declared but not used
Browse files Browse the repository at this point in the history
Signed-off-by: marcin.janas <[email protected]>
  • Loading branch information
marcin-janas committed Apr 5, 2022
1 parent d6af522 commit 3b154e1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion connector/connector.go
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ func (c *TlsRabbitConnector) CreateConnection(connectionURL string) (*amqp.Conne

certFilePath := os.Getenv(config.CertFile)
keyFilePath := os.Getenv(config.KeyFile)
if cert, err := c.KeyLoader.LoadKeyPair(certFilePath, keyFilePath); err == nil {
if _, err := c.KeyLoader.LoadKeyPair(certFilePath, keyFilePath); err == nil {
c.TlsConfig.Certificates = append(c.TlsConfig.Certificates, cert)
} else {
log.WithFields(log.Fields{
Expand Down

0 comments on commit 3b154e1

Please sign in to comment.