Skip to content

Commit

Permalink
(maint) Update FindPackage to use base cache class
Browse files Browse the repository at this point in the history
This updates the method FindPackage to make use of the base class for
the cache context. This is done as there are other calling methods that
now makes use of this function that already specifies this base class,
and to prevent an unnessesary cast this method should be changed as
well.

This is a non-breaking change due to it being the base class of the
existing cache context that was used.
  • Loading branch information
AdmiringWorm authored and gep13 committed Apr 30, 2024
1 parent ad6ff57 commit 376c692
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/chocolatey/infrastructure.app/nuget/NugetList.cs
Original file line number Diff line number Diff line change
Expand Up @@ -356,7 +356,7 @@ public static IPackageSearchMetadata FindPackage(
string packageName,
ChocolateyConfiguration config,
ILogger nugetLogger,
ChocolateySourceCacheContext cacheContext,
SourceCacheContext cacheContext,
IEnumerable<NuGetEndpointResources> resources,
NuGetVersion version = null)
{
Expand Down

0 comments on commit 376c692

Please sign in to comment.