Skip to content

Commit e9012c9

Browse files
committed
chore(): Renames local variable for clarity in certificate loading
1 parent 5011290 commit e9012c9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/OpenTelemetry.Exporter.OpenTelemetryProtocol/Implementation/OtlpCertificateManager.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,13 +35,13 @@ public static X509Certificate2 LoadCaCertificate(string caCertificatePath)
3535

3636
try
3737
{
38-
var certificate = X509Certificate2.CreateFromPemFile(caCertificatePath);
38+
var caCertificate = X509Certificate2.CreateFromPemFile(caCertificatePath);
3939

4040
OpenTelemetryProtocolExporterEventSource.Log.MtlsCertificateLoaded(
4141
CaCertificateType,
4242
caCertificatePath);
4343

44-
return certificate;
44+
return caCertificate;
4545
}
4646
catch (Exception ex)
4747
{

0 commit comments

Comments
 (0)