]> Sergey Matveev's repositories - public-inbox.git/commit
nntp: get_range: return scalarref for $beg
authorEric Wong <e@80x24.org>
Sat, 21 Dec 2019 08:00:00 +0000 (08:00 +0000)
committerEric Wong <e@80x24.org>
Sun, 22 Dec 2019 03:55:38 +0000 (03:55 +0000)
commit145190edbb9b031127d64671d5d8548086ce9fea
treeafcb0abf399e69a6e6a83e8e28f278cbbcbc0f77
parenta1ad66cc2ae871c28d64325894d63ed08d3b6c1b
nntp: get_range: return scalarref for $beg

...Instead of just returning a plain scalar inside an arrayref.

This is because we usually pass the result of NNTP::get_range to
Msgmap::msg_range.  Upcoming changes will move us away from
anonymous subroutines, so this change will make followup commits
easier-to-digest as modifications to the underlying scalar can
be more easily propagated between non-anonymous-subs.
lib/PublicInbox/NNTP.pm