Skip to content

Commit 4d50509

Browse files
siguremi
authored andcommitted
fix credo error
1 parent 2a9f023 commit 4d50509

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/mix_audit/audit.ex

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ defmodule MixAudit.Audit do
44
Enum.reduce(dependencies, [], fn dependency, memo ->
55
advisories
66
|> Map.get(dependency.package, [])
7-
|> Enum.filter(&is_vulnerability?(&1, dependency))
7+
|> Enum.filter(&vulnerability?(&1, dependency))
88
|> Enum.map(&map_vulnerability(&1, dependency))
99
|> (&(memo ++ &1)).()
1010
end)
@@ -15,7 +15,7 @@ defmodule MixAudit.Audit do
1515
}
1616
end
1717

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
1919
Enum.any?(vulnerable_version_ranges, fn version_range ->
2020
version_range
2121
|> map_ranges_to_requirements()

0 commit comments

Comments
 (0)