Skip to content

Commit

Permalink
Act on review result: make for more readable code in a simple case
Browse files Browse the repository at this point in the history
  • Loading branch information
paulo-ferraz-oliveira committed Aug 8, 2023
1 parent be744d8 commit 4f957d8
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions test/elvis_SUITE.erl
Original file line number Diff line number Diff line change
Expand Up @@ -296,12 +296,7 @@ contains_string(Result, String) ->
0 /= string:str(Result, String).

matches_regex(Result, Regex) ->
case re:run(Result, Regex) of
{match, _} ->
true;
nomatch ->
false
end.
nomatch =/= re:run(Result, Regex).

check_empty_output(Fun) ->
Fun(),
Expand Down

0 comments on commit 4f957d8

Please sign in to comment.