From: Eric Wong Date: Wed, 11 Dec 2024 08:10:47 +0000 (+0000) Subject: over_idx: simplify each_by_mid X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1963b46a8d747cd7dfd372085ef79fff1a5bfd48;p=thirdparty%2Fpublic-inbox.git over_idx: simplify each_by_mid Eliminate a useless use of `map {}' and avoid a needless `push' op since the `join' op can just take extra arg. --- diff --git a/lib/PublicInbox/OverIdx.pm b/lib/PublicInbox/OverIdx.pm index dea6f0fc2..b7bebf585 100644 --- a/lib/PublicInbox/OverIdx.pm +++ b/lib/PublicInbox/OverIdx.pm @@ -139,8 +139,7 @@ SELECT id FROM msgid WHERE mid = ? LIMIT 1 my $id = $sth->fetchrow_array; defined $id or return; - push(@$cols, 'num'); - $cols = join(',', map { $_ } @$cols); + $cols = join ',', @$cols, 'num'; my $lim = 10; my $prev = get_counter($dbh, 'ghost'); while (1) {