From 1963b46a8d747cd7dfd372085ef79fff1a5bfd48 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Wed, 11 Dec 2024 08:10:47 +0000 Subject: [PATCH] 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. --- lib/PublicInbox/OverIdx.pm | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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) { -- 2.47.2