Skip to content

Commit

Permalink
(GH-1397) Fix.
Browse files Browse the repository at this point in the history
  • Loading branch information
DamianMaslanka5 committed Feb 21, 2018
1 parent 5904bd0 commit e39afd8
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/chocolatey/infrastructure.app/services/NugetService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -899,8 +899,7 @@ public ConcurrentDictionary<string, PackageResult> get_outdated(ChocolateyConfig
.AsQueryable();
}

// Call .ToList() to prevent warning from NuGet if package is not found in a remote repository
var latestPackage = results.OrderByDescending(x => x.Version).ToList().FirstOrDefault();
var latestPackage = results.ToList().OrderByDescending(x => x.Version).FirstOrDefault();

if (latestPackage == null)
{
Expand Down

0 comments on commit e39afd8

Please sign in to comment.