Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
yazgoo committed Nov 5, 2024
1 parent 761d27a commit d239a46
Showing 1 changed file with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -164,14 +164,14 @@ object AnalyzeDependencyGraph {
alert: Vulnerability,
artifacts: Seq[String]
): (Seq[String], Seq[String]) = {
val alertMavenPath = s"pkg:maven/${alert.packageId.replace(":", "/")}@"
artifacts
.filter(_.startsWith(alertMavenPath))
.partition { artifact =>
val version = artifact.replaceAll(".*@", "")
versionMatchesRange(version, alert.vulnerableVersionRange)
}
}
val alertMavenPath = s"pkg:maven/${alert.packageId.replace(":", "/")}@"
artifacts
.filter(_.startsWith(alertMavenPath))
.partition { artifact =>
val version = artifact.replaceAll(".*@", "")
versionMatchesRange(version, alert.vulnerableVersionRange)
}
}

def getGitHubRepo: Option[String] = {
val remoteUrl = "git config --get remote.origin.url".!!.trim
Expand Down

0 comments on commit d239a46

Please sign in to comment.