]> Sergey Matveev's repositories - public-inbox.git/commit
ds: next_tick: avoid $_ in top-level loop iterator
authorEric Wong <e@80x24.org>
Mon, 1 Feb 2021 08:28:31 +0000 (22:28 -1000)
committerEric Wong <e@80x24.org>
Mon, 1 Feb 2021 11:38:26 +0000 (11:38 +0000)
commit1d34aa20424c96fa99de27bc02c160e1de56c0a6
treebd50d921ad778837d98d62ca24fe6ffc03ddf4eb
parent0795b0906cc81f400e0e5b9b53f812627dbd19c0
ds: next_tick: avoid $_ in top-level loop iterator

$_ at the top of a potentially deep stack below may cause
surprising behavior as I experienced with ExtSearchIdx.  In the
future, we'll limit our $_ usage to easily-auditable bits (e.g.
map, grep, and small for loops)
lib/PublicInbox/DS.pm