Skip to content

Commit

Permalink
(maint) Update method name using naming convention
Browse files Browse the repository at this point in the history
We are no longer using snake case for method names, so we need to be
consistent here.  In addition, add a comment to indicate that this
SupportsChocolatey method isn't currently being used anywhere, but it
is there for future proofing of the interaction between Chocolatey and
its consumers.
  • Loading branch information
gep13 committed Apr 11, 2023
1 parent e68fab9 commit 3c98930
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,10 @@ private bool ValidateMinimumChocolateyVersion(Type instanceType, NuGetVersion ch
return false;
}

var methodImpl = instanceType.GetMethod("supports_chocolatey", BindingFlags.Static | BindingFlags.Public);
// NOTE: This method, SupportsChocolatey, does not currently exist anywhere in our code bases.
// This validation check was put in place for future proofing the interaction between Chocolatey
// and its consumers.
var methodImpl = instanceType.GetMethod("SupportsChocolatey", BindingFlags.Static | BindingFlags.Public);

if (methodImpl == null)
{
Expand Down

0 comments on commit 3c98930

Please sign in to comment.