diff options
-rw-r--r-- | src/rebar_prv_cover.erl | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/rebar_prv_cover.erl b/src/rebar_prv_cover.erl index f814e2a..c915141 100644 --- a/src/rebar_prv_cover.erl +++ b/src/rebar_prv_cover.erl @@ -238,6 +238,8 @@ seperator(Width) -> format(String, Width) -> io_lib:format("~*.ts", [Width, String]). +calculate_total(Stats) when length(Stats) =:= 0 -> + "0%"; calculate_total(Stats) -> TotalStats = length(Stats), TotalCovInt = round(lists:foldl( |