Skip to content

Commit

Permalink
R#
Browse files Browse the repository at this point in the history
  • Loading branch information
peters committed Jun 27, 2020
1 parent 0539b4d commit 4c2a8a7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Snap/Core/SnapPackageManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -312,19 +312,19 @@ public async Task<SnapPackageManagerRestoreSummary> RestoreAsync(string packages

async Task ChecksumAsync()
{
List<SnapRelease> snapReleasesToChecksum;
var snapReleasesToChecksum = new List<SnapRelease>();

switch (restoreType)
{
case SnapPackageManagerRestoreType.Default:
snapReleasesToChecksum = snapAppChannelReleases.Where(x => x.IsGenesis || x.IsDelta).ToList();
snapReleasesToChecksum.AddRange(snapAppChannelReleases.Where(x => x.IsGenesis || x.IsDelta));
if (snapAppChannelReleases.HasDeltaReleases())
{
snapReleasesToChecksum.Add(snapAppChannelReleases.Last().AsFullRelease(false));
}
break;
case SnapPackageManagerRestoreType.Pack:
snapReleasesToChecksum = snapAppChannelReleases.Where(x => x.IsGenesis || x.IsDelta).ToList();
snapReleasesToChecksum.AddRange(snapAppChannelReleases.Where(x => x.IsGenesis || x.IsDelta));
break;
default:
throw new NotSupportedException(restoreType.ToString());
Expand Down

0 comments on commit 4c2a8a7

Please sign in to comment.