]> Sergey Matveev's repositories - public-inbox.git/blobdiff - t/v2reindex.t
favor `do {}' over `eval {}' for localized slurp
[public-inbox.git] / t / v2reindex.t
index 7c14117af0514bb1cccff3c3515d17990c776d0f..b6164ff810febd2936236e7ac2bd42f0d2e3bdc8 100644 (file)
@@ -18,12 +18,11 @@ my $ibx_config = {
        -primary_address => 'test@example.com',
        indexlevel => 'full',
 };
-my $agpl = eval {
+my $agpl = do {
        open my $fh, '<', 'COPYING' or die "can't open COPYING: $!";
        local $/;
        <$fh>;
 };
-$agpl or die "AGPL or die :P\n";
 my $phrase = q("defending all users' freedom");
 my $mime = PublicInbox::MIME->create(
        header => [