From c44a47c6d3463e35c68ab570cf286068f6b6657d Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Sat, 25 Jan 2020 04:44:51 +0000 Subject: view: improve readability around walk_thread Pass \&coderefs explicitly to walk_thread, and add some prototypes + comments to describe what goes on. --- lib/PublicInbox/SearchView.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/PublicInbox/SearchView.pm') diff --git a/lib/PublicInbox/SearchView.pm b/lib/PublicInbox/SearchView.pm index 584b88ed..94a55b8d 100644 --- a/lib/PublicInbox/SearchView.pm +++ b/lib/PublicInbox/SearchView.pm @@ -287,7 +287,7 @@ sub mset_thread { # reduce hash lookups in skel_dump $ctx->{-obfuscate} = $ctx->{-inbox}->{obfuscate}; PublicInbox::View::walk_thread($rootset, $ctx, - *PublicInbox::View::pre_thread); + \&PublicInbox::View::pre_thread); @$msgs = reverse @$msgs if $r; $ctx->{msgs} = $msgs; -- cgit v1.2.3-24-ge0c7