]> Sergey Matveev's repositories - public-inbox.git/commit
viewdiff: diff_hunk: shorten conditionals, slightly
authorEric Wong <e@80x24.org>
Sat, 10 Sep 2022 08:17:15 +0000 (08:17 +0000)
committerEric Wong <e@80x24.org>
Sat, 10 Sep 2022 19:50:45 +0000 (19:50 +0000)
commit03673adef5a74f7ebd6be960187e5e8592779900
treeaa5736ba9971c54d919f4bec096714627ce1348d
parent7909a26697d91a74a3b4df638b2a658432f1b799
viewdiff: diff_hunk: shorten conditionals, slightly

I'm not sure if Devel::Size::total_size can be trusted due
to the regexps and crashes[1], but when it works, it's showing
around a 900 byte size reduction, too.

[1] https://rt.cpan.org/Public/Bug/Display.html?id=96421
lib/PublicInbox/ViewDiff.pm