From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: X-Spam-Status: No, score=-4.0 required=3.0 tests=ALL_TRUSTED,BAYES_00 shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 Received: from localhost (dcvr.yhbt.net [127.0.0.1]) by dcvr.yhbt.net (Postfix) with ESMTP id A233D1F9E0; Sun, 26 Apr 2020 07:35:06 +0000 (UTC) Date: Sun, 26 Apr 2020 07:35:05 +0000 From: Eric Wong To: meta@public-inbox.org Subject: [PATCH 4/3] testcommon: mime_load: drop extra $cb arg Message-ID: <20200426073505.GA82818@dcvr> References: <20200425055223.21879-1-e@yhbt.net> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20200425055223.21879-1-e@yhbt.net> List-Id: We don't need the callback arg, anymore. --- Just pushed this trivial fixup out 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> })); }