]> Sergey Matveev's repositories - public-inbox.git/commit
ds|http|nntp: simplify {wbuf} population
authorEric Wong <e@yhbt.net>
Sun, 12 Jan 2020 21:17:51 +0000 (21:17 +0000)
committerEric Wong <e@yhbt.net>
Mon, 13 Jan 2020 23:21:25 +0000 (23:21 +0000)
commita65ebdc3a1f064bab0cddf64b34caad49f1c4c9c
tree2f3dea59884e4d6ee37393abd5f3a901593f4b79
parent8f23c134b6c9bfc9f23b3eed7811082e6d33a84c
ds|http|nntp: simplify {wbuf} population

We can rely on autovification to turn `undef' value of {wbuf}
into an arrayref.

Furthermore, "push" returns the (new) size of the array since at
least Perl 5.0 (I didn't look further back), so we can use that
return value instead of calling "scalar" again.
lib/PublicInbox/DS.pm
lib/PublicInbox/HTTP.pm
lib/PublicInbox/NNTP.pm