Skip to content

Commit

Permalink
better syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
baldarn authored and remi committed Mar 19, 2024
1 parent 621747d commit e413c85
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/mix_audit/cli/audit.ex
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,8 @@ defmodule MixAudit.CLI.Audit do
[]

ignore_file ->
File.read!(ignore_file)
ignore_file
|> File.read!()
|> String.split("\n")
|> Enum.reject(fn line -> String.starts_with?(line, "#") || String.trim(line) == "" end)
end
Expand Down

0 comments on commit e413c85

Please sign in to comment.