about summary refs log tree commit homepage
path: root/lib/PublicInbox/WwwCoderepo.pm
diff options
context:
space:
mode:
Diffstat (limited to 'lib/PublicInbox/WwwCoderepo.pm')
-rw-r--r--lib/PublicInbox/WwwCoderepo.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/PublicInbox/WwwCoderepo.pm b/lib/PublicInbox/WwwCoderepo.pm
index 61aa7862..a5e2dc4a 100644
--- a/lib/PublicInbox/WwwCoderepo.pm
+++ b/lib/PublicInbox/WwwCoderepo.pm
@@ -253,7 +253,7 @@ sub summary ($$) {
         push(@log, $tip) if defined $tip;
 
         # limit scope for MockHTTP test (t/solver_git.t)
-        my $END = PublicInbox::OnDestroy->new($$, \&summary_END, $ctx);
+        my $END = on_destroy \&summary_END, $ctx;
         for (['log', \@log],
                  [ 'heads', [@EACH_REF, "--count=$nb", 'refs/heads'] ],
                  [ 'tags', [@EACH_REF, "--count=$nt", 'refs/tags'] ]) {