about summary refs log tree commit homepage
path: root/lib/PublicInbox/Import.pm
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2019-11-29 10:14:14 +0000
committerEric Wong <e@80x24.org>2019-12-11 08:10:33 +0000
commit08f57606beaa3772aefd7ebde43e615781976678 (patch)
treef77e6e08ee4a946a1dd3415b149c0ee6ff987e92 /lib/PublicInbox/Import.pm
parentb82e6c82aedb58309bdcdd041cabb5f82ec62234 (diff)
downloadpublic-inbox-08f57606beaa3772aefd7ebde43e615781976678.tar.gz
run_die() doesn't require an $env arg, so there's no
point passing "undef" to it.
Diffstat (limited to 'lib/PublicInbox/Import.pm')
-rw-r--r--lib/PublicInbox/Import.pm4
1 files changed, 2 insertions, 2 deletions
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 {