Skip to content

Commit

Permalink
making the method static
Browse files Browse the repository at this point in the history
  • Loading branch information
adityanarayanp committed Nov 24, 2023
1 parent 03c1cb2 commit af9762c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/LCT.APICommunications/JfrogAqlApiCommunication.cs
Original file line number Diff line number Diff line change
Expand Up @@ -104,15 +104,15 @@ private static HttpClient GetHttpClient(ArtifactoryCredentials credentials)
return httpClient;
}

private void ValidateParameters(string packageName, string path)
private static void ValidateParameters(string packageName, string path)
{
if (string.IsNullOrEmpty(packageName) && string.IsNullOrEmpty(path))
{
throw new ArgumentException("Either packageName or path, or both must be provided.");
}
}

private string BuildAqlQuery(string repoName, string packageName, string path)
private static string BuildAqlQuery(string repoName, string packageName, string path)
{
var queryList = new List<string>()
{
Expand Down

0 comments on commit af9762c

Please sign in to comment.