From: Eric Wong (Contractor, The Linux Foundation) Date: Thu, 5 Apr 2018 09:34:10 +0000 (+0000) Subject: searchview: minor cleanup X-Git-Tag: v1.1.0-pre1~56 X-Git-Url: http://www.git.stargrave.org/?p=public-inbox.git;a=commitdiff_plain;h=3dcb03ef3ec06ad0f0335973df405ec8d041abee searchview: minor cleanup $mset->size is probably more obvious than relying on a tied array and saves us a line. --- diff --git a/lib/PublicInbox/SearchView.pm b/lib/PublicInbox/SearchView.pm index c7897958..d038dfca 100644 --- a/lib/PublicInbox/SearchView.pm +++ b/lib/PublicInbox/SearchView.pm @@ -180,9 +180,8 @@ sub search_nav_top { sub search_nav_bot { my ($mset, $q) = @_; my $total = $mset->get_matches_estimated; - my $nr = scalar $mset->items; my $o = $q->{o}; - my $end = $o + $nr; + my $end = $o + $mset->size; my $beg = $o + 1; my $rv = '
';
 	if ($beg <= $end) {