From 1e0d36a81bc6796c611e367a7df36c5f6c34d2af Mon Sep 17 00:00:00 2001 From: swaggboi Date: Mon, 15 Aug 2022 20:25:21 -0400 Subject: [PATCH] Lil cleanup --- lib/PostText/Model/Thread.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/PostText/Model/Thread.pm b/lib/PostText/Model/Thread.pm index de475c2..36a3c44 100644 --- a/lib/PostText/Model/Thread.pm +++ b/lib/PostText/Model/Thread.pm @@ -67,9 +67,9 @@ sub get_last_page($self) { my $last_page = int($thread_count / $self->{'threads_per_page'}); # Add a page for 'remainder' posts - return ++$last_page if $thread_count % $self->{'threads_per_page'}; + $last_page++ if $thread_count % $self->{'threads_per_page'}; - return $last_page; + $last_page; } sub get_thread_count($self) {