Skip to content

Commit

Permalink
Minor cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
vcsjones committed May 6, 2024
1 parent 80bcbd1 commit c7d819f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/AzureSignTool/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ private async ValueTask<int> RunSign()
}
logger.LogTrace("Creating context");

using (var keyVault = RSAFactory.Create(materialized.TokenCredential, materialized.KeyId, materialized.PublicCertificate))
using (var keyVault = RSAFactory.Create(materialized.TokenCredential, materialized.KeyId, materialized.PublicCertificate))
using (var signer = new AuthenticodeKeyVaultSigner(keyVault, materialized.PublicCertificate, ParseHashAlgorithm(FileDigestAlgorithm), timeStampConfiguration, certificates))
{
Parallel.ForEach(AllFiles, options, () => (succeeded: 0, failed: 0), (filePath, pls, state) =>
Expand Down Expand Up @@ -558,9 +558,9 @@ private static bool OneTrue(params bool[] values)
{
int count = 0;

foreach (bool v in values)
for (int i = 0; i < values.Length && count < 2; i++)
{
if (v)
if (values[i])
{
count++;
}
Expand Down

0 comments on commit c7d819f

Please sign in to comment.