Skip to content

Commit

Permalink
Update PackageManagerSearchViewModel.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
zeusongit committed Jul 8, 2024
1 parent 9553a9f commit 815bd42
Showing 1 changed file with 1 addition and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1488,14 +1488,7 @@ internal IEnumerable<PackageManagerSearchElementViewModel> Search(string searchT
/// <returns></returns>
private PackageManagerSearchElementViewModel GetViewModelForPackageSearchElement(string packageName)
{
var result = PackageManagerClientViewModel.CachedPackageList.Where(e =>
{
if (e.Name.Equals(packageName))
{
return true;
}
return false;
});
var result = PackageManagerClientViewModel.CachedPackageList.Where(e => e.Name.Equals(packageName));

if (!result.Any())
{
Expand Down

0 comments on commit 815bd42

Please sign in to comment.