Skip to content

Commit

Permalink
Act on self-review: go for more compact output
Browse files Browse the repository at this point in the history
  • Loading branch information
paulo-ferraz-oliveira committed Mar 6, 2024
1 parent 2da6731 commit 80c2238
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions vendor/cth_readable/src/cth_readable_compact_shell.erl
Original file line number Diff line number Diff line change
Expand Up @@ -63,15 +63,7 @@ init(Id, Opts) ->
{ok, #state{id=Id, opts=Opts, last_suite=undefined}}.

%% @doc Called before init_per_suite is called.
pre_init_per_suite(Suite,Config,#state{opts = Opts, last_suite = LastSuite} = State) ->
IsFirstSuite = LastSuite =:= undefined,
IsVerbose = is_verbose(Opts),
case IsFirstSuite of
false when IsVerbose ->
io:format(user, "~n", []);
_Else ->
ok
end,
pre_init_per_suite(Suite,Config,State) ->
io:format(user, "%%% ~p", [Suite]),
{Config, State#state{suite=Suite, groups=[]}}.

Expand Down

0 comments on commit 80c2238

Please sign in to comment.