Skip to content

Commit

Permalink
Update AddSigningDetails.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
HotCakeX committed Dec 27, 2024
1 parent 1f80f94 commit 7bd1b97
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion AppControl Manager/SiPolicyIntel/AddSigningDetails.cs
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,16 @@ internal static SiPolicy.SiPolicy Add(string xmlPolicyFile, string certificateFi
}
else
{
IEnumerable<Signer> signersList = policyObject.PolicyType is not PolicyType.SupplementalPolicy ? [updatePolicySigner, supplementalPolicySigner] : [updatePolicySigner];
IEnumerable<Signer> signersList;

if (policyObject.PolicyType is not PolicyType.SupplementalPolicy)
{
signersList = [updatePolicySigner, supplementalPolicySigner];
}
else
{
signersList = [updatePolicySigner];
}

policyObject.Signers = [.. signersList];
}
Expand Down

0 comments on commit 7bd1b97

Please sign in to comment.