Skip to content

Commit

Permalink
[#22] Remove TODO comments
Browse files Browse the repository at this point in the history
  • Loading branch information
danielberkompas committed Mar 11, 2017
1 parent 072fb8e commit 407d23a
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions lib/torch/views/pagination_view.ex
Original file line number Diff line number Diff line change
Expand Up @@ -43,15 +43,13 @@ defmodule Torch.PaginationView do
end
end

# TODO: Comment the logic here, it's very difficult to parse
defp start_page(current_page, distance) when current_page - distance < 1 do
current_page - (distance + (current_page - distance - 1))
end
defp start_page(current_page, distance) do
current_page - distance
end

# TODO: comment the logic here as well
defp end_page(current_page, 0, _distance) do
current_page
end
Expand Down

0 comments on commit 407d23a

Please sign in to comment.