Skip to content

Commit 598d628

Browse files
committed
fmt
1 parent 761d27a commit 598d628

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

sbt-plugin/src/main/scala/ch/epfl/scala/AnalyzeDependencyGraph.scala

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -163,15 +163,15 @@ object AnalyzeDependencyGraph {
163163
private def vulnerabilityMatchesArtifacts(
164164
alert: Vulnerability,
165165
artifacts: Seq[String]
166-
): (Seq[String], Seq[String]) = {
167-
val alertMavenPath = s"pkg:maven/${alert.packageId.replace(":", "/")}@"
168-
artifacts
169-
.filter(_.startsWith(alertMavenPath))
170-
.partition { artifact =>
171-
val version = artifact.replaceAll(".*@", "")
172-
versionMatchesRange(version, alert.vulnerableVersionRange)
173-
}
174-
}
166+
): (Seq[String], Seq[String]) = {
167+
val alertMavenPath = s"pkg:maven/${alert.packageId.replace(":", "/")}@"
168+
artifacts
169+
.filter(_.startsWith(alertMavenPath))
170+
.partition { artifact =>
171+
val version = artifact.replaceAll(".*@", "")
172+
versionMatchesRange(version, alert.vulnerableVersionRange)
173+
}
174+
}
175175

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

0 commit comments

Comments
 (0)