diff --git a/src/Snap/Core/SnapPackageManager.cs b/src/Snap/Core/SnapPackageManager.cs index c2fdbdd4..c9e5ff0e 100644 --- a/src/Snap/Core/SnapPackageManager.cs +++ b/src/Snap/Core/SnapPackageManager.cs @@ -312,19 +312,19 @@ public async Task RestoreAsync(string packages async Task ChecksumAsync() { - List snapReleasesToChecksum; + var snapReleasesToChecksum = new List(); 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());