]> Sergey Matveev's repositories - public-inbox.git/commit
imap: ensure_slices_exist: drop needless map and array
authorEric Wong <e@80x24.org>
Thu, 4 Aug 2022 08:17:01 +0000 (08:17 +0000)
committerEric Wong <e@80x24.org>
Thu, 4 Aug 2022 20:09:35 +0000 (20:09 +0000)
commit956fa442de1699e078cc7babb7a34af83d143307
treefb039457a4d215bdea30deb4c6f49d84df3e6beb
parentfca813000ce319e9a320f0fdc9ee7272810f8833
imap: ensure_slices_exist: drop needless map and array

We can reduce ops and temporary objects here by folding the
stringification into the `for' loop and push directly into the
{mailboxlist} array; relying on autovivification to turn it into
a noop for the initial population.
lib/PublicInbox/IMAP.pm