From 84fa5eb6875c816d73f321964755d94fd683a8a7 Mon Sep 17 00:00:00 2001 From: Chris Berkhout Date: Fri, 28 Feb 2025 14:57:39 +0100 Subject: [PATCH] Fix for linter. --- x-pack/filebeat/input/o365audit/auth/cert.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/x-pack/filebeat/input/o365audit/auth/cert.go b/x-pack/filebeat/input/o365audit/auth/cert.go index 6717c056a046..571cbf56b2d8 100644 --- a/x-pack/filebeat/input/o365audit/auth/cert.go +++ b/x-pack/filebeat/input/o365audit/auth/cert.go @@ -48,7 +48,7 @@ func loadConfigCerts(cfg tlscommon.CertificateConfig) (cert *x509.Certificate, k if tlsCert.PrivateKey == nil { return nil, nil, fmt.Errorf("failed loading private key from '%s'", cfg.Key) } - key, ok := tlsCert.PrivateKey.(*rsa.PrivateKey) + _, ok := tlsCert.PrivateKey.(*rsa.PrivateKey) if !ok { return nil, nil, fmt.Errorf("private key at '%s' is not an RSA private key", cfg.Key) }