From: Eric Wong Date: Fri, 29 Nov 2019 10:14:14 +0000 (+0000) Subject: import: (cleanup) drop redundant env arg to run_die X-Git-Tag: v1.3.0~238 X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;ds=sidebyside;h=08f57606beaa3772aefd7ebde43e615781976678;p=public-inbox.git import: (cleanup) drop redundant env arg to run_die run_die() doesn't require an $env arg, so there's no point passing "undef" to it. --- diff --git a/lib/PublicInbox/Import.pm b/lib/PublicInbox/Import.pm index 8a369ee4..46de09c4 100644 --- a/lib/PublicInbox/Import.pm +++ b/lib/PublicInbox/Import.pm @@ -178,14 +178,14 @@ sub _update_git_info ($$) { my $env = { GIT_INDEX_FILE => $index }; run_die([@cmd, qw(read-tree -m -v -i), $self->{ref}], $env); } - run_die([@cmd, 'update-server-info'], undef); + run_die([@cmd, 'update-server-info']); my $ibx = $self->{-inbox}; ($ibx && $self->{path_type} eq '2/38') and eval { require PublicInbox::SearchIdx; my $s = PublicInbox::SearchIdx->new($ibx); $s->index_sync({ ref => $self->{ref} }); }; - eval { run_die([@cmd, qw(gc --auto)], undef) } if $do_gc; + eval { run_die([@cmd, qw(gc --auto)]) } if $do_gc; } sub barrier {