Skip to content

Commit

Permalink
Act on CI results: thanks Windows!
Browse files Browse the repository at this point in the history
  • Loading branch information
paulo-ferraz-oliveira committed Sep 17, 2024
1 parent 6c05cb5 commit 6e39922
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/elvis_project.erl
Original file line number Diff line number Diff line change
Expand Up @@ -104,9 +104,7 @@ gitignore_patterns(_Config, #{path := Path}, RuleConfig) ->
AllOf = option(all_of, RuleConfig, gitignore_patterns),
case file:read_file(Path) of
{ok, PatternsBin} ->
PatternsStr = binary_to_list(PatternsBin),
PatternsNoR = string:replace(PatternsStr, "\r", ""),
Patterns = string:split(PatternsNoR, "\n", all),
Patterns = elvis_utils:split_all_lines(PatternsBin),
check_patterns_in_lines(Patterns, AllOf, []);
{error, _} ->
[]
Expand Down

0 comments on commit 6e39922

Please sign in to comment.