Skip to content

Commit

Permalink
Updating the access modifier to public for the IsDevDependency method.
Browse files Browse the repository at this point in the history
  • Loading branch information
Aditya Narayan committed Sep 27, 2023
1 parent 06b761a commit 204027e
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions src/LCT.PackageIdentifier/ConanProcessor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,18 @@ public async Task<List<Component>> GetJfrogRepoDetailsOfAComponent(List<Componen
return modifiedBOM;
}

public static bool IsDevDependency(ConanPackage component, ConanPackage rootNode, ref int noOfDevDependent)
{
var isDev = false;
if (rootNode.DevDependencies != null && rootNode.DevDependencies.Contains(component.Id))
{
isDev = true;
noOfDevDependent++;
}

return isDev;
}

#endregion

#region private methods
Expand Down Expand Up @@ -267,18 +279,6 @@ private static void GetPackagesForBom(ref List<Component> lstComponentForBOM, re
}
}

private static bool IsDevDependency(ConanPackage component, ConanPackage rootNode, ref int noOfDevDependent)
{
var isDev = false;
if (rootNode.DevDependencies != null && rootNode.DevDependencies.Contains(component.Id))
{
isDev = true;
noOfDevDependent++;
}

return isDev;
}

private static bool IsInternalConanComponent(List<AqlResult> aqlResultList, Component component)
{
string jfrogcomponentPath = $"{component.Name}/{component.Version}";
Expand Down

0 comments on commit 204027e

Please sign in to comment.