Skip to content

Commit

Permalink
Fix for linter.
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisberkhout committed Mar 3, 2025
1 parent 1bdb8e8 commit 84fa5eb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion x-pack/filebeat/input/o365audit/auth/cert.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down

0 comments on commit 84fa5eb

Please sign in to comment.