Skip to content

Commit

Permalink
minor fix
Browse files Browse the repository at this point in the history
  • Loading branch information
eranturgeman committed Sep 27, 2023
1 parent c17eba6 commit 435895c
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions packagehandlers/gradlepackagehandler.go
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down Expand Up @@ -81,7 +68,6 @@ func (gph *GradlePackageHandler) updateDirectDependency(vulnDetails *utils.Vulne
return
}
}

return
}

Expand Down

0 comments on commit 435895c

Please sign in to comment.