From 6e472b959b6e4391ca902ad23d73e90c220f2da5 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Sun, 26 Apr 2020 07:32:45 +0000 Subject: [PATCH] testcommon: mime_load: drop extra $cb arg We don't need the callback arg, anymore. --- lib/PublicInbox/TestCommon.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/PublicInbox/TestCommon.pm b/lib/PublicInbox/TestCommon.pm index 27390ab2..cd73b5b6 100644 --- a/lib/PublicInbox/TestCommon.pm +++ b/lib/PublicInbox/TestCommon.pm @@ -12,7 +12,7 @@ our @EXPORT = qw(tmpdir tcp_server tcp_connect require_git require_mods run_script start_script key2sub xsys xqx mime_load); sub mime_load ($) { - my ($path, $cb) = @_; + my ($path) = @_; open(my $fh, '<', $path) or die "open $path: $!"; PublicInbox::MIME->new(\(do { local $/; <$fh> })); } -- 2.44.0