Avoid tap in favour of a local variable
Avoid tap in favour of a local variable

Object#tap has been 22% slower than using a local variable in some
benchmarks we've run on other internal projects [0] (presumably due to
the cost of instantiating a block). Drop it in favour of explicitly
using a local variable.

[0]: https://github.com/altmetric/til/blob/master/ruby/benchmarking.md

altmetric/aho_corasick_matcher