]> Sergey Matveev's repositories - public-inbox.git/commit
mid: use defined-or with `push' for uniqueness check
authorEric Wong <e@80x24.org>
Thu, 31 Dec 2020 13:51:36 +0000 (13:51 +0000)
committerEric Wong <e@80x24.org>
Fri, 1 Jan 2021 05:00:39 +0000 (05:00 +0000)
commitee3c840f2f4169ebcf16753a10df5a10a08649de
treee016230fcefe3faa11aa218602d42ad727774615
parent0d649fc15eab07976344a6ae32a946b2b1c32f4f
mid: use defined-or with `push' for uniqueness check

As shown recently in commit a05445fb400108e60ede7d377cf3b26a0392eb24
("config: config_fh_parse: micro-optimize"), the relying on
the return value of `push' and defined-or operators can avoid
modifying a the hash value scalar with an increment.
lib/PublicInbox/MID.pm