Skip to content

Commit f70d243

Browse files
authored
Fix issue for PVS-Stduio (#14369)
1 parent 455fabe commit f70d243

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/KeyVault/KeyVault/Models/PSKeyVaultCertificatePolicy.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ internal CertificatePolicy ToCertificatePolicy()
173173
if (!string.IsNullOrWhiteSpace(SubjectName) ||
174174
DnsNames != null ||
175175
Ekus != null ||
176-
KeyUsage != null |
176+
KeyUsage != null ||
177177
ValidityInMonths.HasValue)
178178
{
179179
var x509CertificateProperties = new X509CertificateProperties
@@ -188,7 +188,7 @@ internal CertificatePolicy ToCertificatePolicy()
188188

189189
if (Ekus != null)
190190
{
191-
x509CertificateProperties.Ekus = Ekus == null ? null : new List<string>(Ekus);
191+
x509CertificateProperties.Ekus = new List<string>(Ekus);
192192
}
193193

194194
if (DnsNames != null)

0 commit comments

Comments
 (0)