From 435895c17eafc1a8319ad8b7a1124ebb15be55f8 Mon Sep 17 00:00:00 2001 From: Eran Turgeman Date: Wed, 27 Sep 2023 10:46:59 +0300 Subject: [PATCH] minor fix --- packagehandlers/gradlepackagehandler.go | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/packagehandlers/gradlepackagehandler.go b/packagehandlers/gradlepackagehandler.go index 3459d5dd5..57dfef811 100644 --- a/packagehandlers/gradlepackagehandler.go +++ b/packagehandlers/gradlepackagehandler.go @@ -22,19 +22,6 @@ const ( var directMapWithVersionRegexp string func init() { - /* - // Example: junit:junit:1.0.0 - regexpPatterns = append(regexpPatterns, directStringWithVersionFormat) - - groupEntry := getMapRegexpEntry("group") - nameEntry := getMapRegexpEntry("name") - versionEntry := getMapRegexpEntry("version") - - // Example: group: "junit", name: "junit", version: "1.0.0" | group = "junit", name = "junit", version = "1.0.0" - directMapRegexpPattern := groupEntry + "," + nameEntry + "," + versionEntry - regexpPatterns = append(regexpPatterns, directMapRegexpPattern) - */ - // Initializing a regexp pattern for map dependencies // Example: group: "junit", name: "junit", version: "1.0.0" | group = "junit", name = "junit", version = "1.0.0" groupEntry := getMapRegexpEntry("group") @@ -81,7 +68,6 @@ func (gph *GradlePackageHandler) updateDirectDependency(vulnDetails *utils.Vulne return } } - return }