From: Eric Wong <e@yhbt.net>
To: meta@public-inbox.org
Subject: [PATCH 4/3] testcommon: mime_load: drop extra $cb arg
Date: Sun, 26 Apr 2020 07:35:05 +0000 [thread overview]
Message-ID: <20200426073505.GA82818@dcvr> (raw)
In-Reply-To: <20200425055223.21879-1-e@yhbt.net>
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> }));
}
prev parent reply other threads:[~2020-04-26 7:35 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-04-25 5:52 [PATCH 0/3] remove Email::MIME->create use Eric Wong
2020-04-25 5:52 ` [PATCH 1/3] testcommon: introduce mime_load sub Eric Wong
2020-04-25 5:52 ` [PATCH 2/3] tests: remove Email::MIME->create use entirely Eric Wong
2020-04-25 5:52 ` [PATCH 3/3] tests: replace mime_from_path with mime_load Eric Wong
2020-04-26 7:35 ` Eric Wong [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: http://public-inbox.org/README
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20200426073505.GA82818@dcvr \
--to=e@yhbt.net \
--cc=meta@public-inbox.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://80x24.org/public-inbox.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).