Skip to content

Commit

Permalink
fix: trying minor changes to bypass defender signature false positive
Browse files Browse the repository at this point in the history
  • Loading branch information
Rast1234 committed Oct 1, 2022
1 parent 512c8fb commit 2e8d67c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions SyncFaction.Core/Services/UiCommands.cs
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ public async Task<bool> UpdateCommunityPatch(IStorage storage, CancellationToken
return true;
}

private async Task<bool> UpdateInternal(Mod patch, IEnumerable<Mod> updates, IStorage storage, CancellationToken token)
private async Task<bool> UpdateInternal(Mod patch, IEnumerable<Mod> allUpdates, IStorage storage, CancellationToken token)
{
if (stateProvider.State.CommunityPatch != patch.Id)
{
Expand All @@ -247,10 +247,10 @@ private async Task<bool> UpdateInternal(Mod patch, IEnumerable<Mod> updates, ISt
stateProvider.State.CommunityUpdates.Clear();
}

if (!updateIds.SequenceEqual(stateProvider.State.CommunityUpdates))
if (!updateIds!.SequenceEqual(stateProvider.State.CommunityUpdates))
{
var installed = stateProvider.State.CommunityUpdates.ToList();
var pendingUpdates = updates.ToList();
var pendingUpdates = allUpdates.ToList();
while (installed.Any())
{
var current = installed.First();
Expand Down

0 comments on commit 2e8d67c

Please sign in to comment.