summaryrefslogtreecommitdiff
path: root/src/v1.erl
diff options
context:
space:
mode:
Diffstat (limited to 'src/v1.erl')
-rw-r--r--src/v1.erl3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/v1.erl b/src/v1.erl
index c1db2c3..ba5c456 100644
--- a/src/v1.erl
+++ b/src/v1.erl
@@ -103,8 +103,7 @@
{End, _} = string:to_integer(EndInput),
case lists:member(error, [Start, End]) of
true -> html("get-entries: bad input:", [Start, End]);
- false -> catlfish:entries(Start,
- min(max(End, Start), Start + 999))
+ false -> catlfish:entries(Start, min(End, Start + 999))
end;
_ -> html("get-entries: bad input:", Input)
end,