]> Sergey Matveev's repositories - public-inbox.git/commit
searchidx: add_message: fix and make use of prototypes
authorEric Wong <e@80x24.org>
Fri, 3 Jan 2020 08:46:00 +0000 (08:46 +0000)
committerEric Wong <e@80x24.org>
Sat, 4 Jan 2020 09:34:52 +0000 (09:34 +0000)
commitda1ae9ccd829966195bfe59f17e416f218746def
tree802de269f2b4391fd6fe9486322aaf0404e0a089
parent60fdf3773655ab459dc52d6df8ace6555c903311
searchidx: add_message: fix and make use of prototypes

Procedural function calls allow prototype checking, and
our add_message prototype was totally wrong to begin with.
Convert most of the "$self->index_*" calls to "index_*($self"

While we're at it, use "//=" to avoid some "unless" statements.
lib/PublicInbox/SearchIdx.pm