Skip to content

Commit

Permalink
Elixir 1.18 compatibility (#333)
Browse files Browse the repository at this point in the history
  • Loading branch information
maennchen authored Oct 18, 2024
1 parent 7952661 commit f8dc51d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/excoveralls/stop_words.ex
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ defmodule ExCoveralls.StopWords do
lines = String.split(source, "\n")
list = Enum.zip(lines, coverage)
|> Enum.map(fn(x) -> has_valid_line?(x, words) end)
|> List.zip
|> Enum.zip()
|> Enum.map(&Tuple.to_list(&1))
[source, coverage] = parse_filter_list(list)
%{name: name, source: source, coverage: coverage}
Expand All @@ -25,9 +25,9 @@ defmodule ExCoveralls.StopWords do

defp has_valid_line?({line, coverage}, words) do
if find_stop_words(line, words) == false do
{line, coverage}
[line, coverage]
else
{line, nil}
[line, nil]
end
end

Expand Down

0 comments on commit f8dc51d

Please sign in to comment.