File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ defmodule MixAudit.Audit do
4
4
Enum . reduce ( dependencies , [ ] , fn dependency , memo ->
5
5
advisories
6
6
|> Map . get ( dependency . package , [ ] )
7
- |> Enum . filter ( & is_vulnerability ?( & 1 , dependency ) )
7
+ |> Enum . filter ( & vulnerability ?( & 1 , dependency ) )
8
8
|> Enum . map ( & map_vulnerability ( & 1 , dependency ) )
9
9
|> ( & ( memo ++ & 1 ) ) . ( )
10
10
end )
@@ -15,7 +15,7 @@ defmodule MixAudit.Audit do
15
15
}
16
16
end
17
17
18
- defp is_vulnerability ?( % MixAudit.Advisory { vulnerable_version_ranges: vulnerable_version_ranges } , % MixAudit.Dependency { version: version } ) do
18
+ defp vulnerability ?( % MixAudit.Advisory { vulnerable_version_ranges: vulnerable_version_ranges } , % MixAudit.Dependency { version: version } ) do
19
19
Enum . any? ( vulnerable_version_ranges , fn version_range ->
20
20
version_range
21
21
|> map_ranges_to_requirements ( )
You can’t perform that action at this time.
0 commit comments