Skip to content

Commit

Permalink
Remove a case which is not needed.
Browse files Browse the repository at this point in the history
The call to lists:seq(X,X) works fine for any integer X. Don't keep this
as a special case.
  • Loading branch information
jlouis committed Sep 11, 2016
1 parent 35aadd1 commit 60cdf60
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/eministat_plot.erl
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,6 @@ bar(#dataset {} = Ds, Pos, #plot { bars = Bars, dx = DX, x0 = X0 } = Plot) ->
X = trunc(((eministat_ds:mean(Ds) - Dev) - X0) / DX),
M = trunc(((eministat_ds:mean(Ds) + Dev) - X0) / DX),
Base = case {X+1, M-1} of
{Z, Z} -> #{ Z => "_" };
{Lo, Hi} when Lo < Hi ->
maps:from_list([{I, "_"} || I <- lists:seq(Lo, Hi)]);
{_, _} -> #{}
Expand Down

0 comments on commit 60cdf60

Please sign in to comment.