summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSean Whitton <spwhitton@spwhitton.name>2020-02-10 22:51:13 -0700
committerSean Whitton <spwhitton@spwhitton.name>2020-02-10 22:51:13 -0700
commit3b9177df7acd25e7169619200bc930b7f6b23d86 (patch)
tree2c77e3aa684c0fdfa681231245f8c638c171ced0
parentb8dbaa0149d7f300a608bb1ee92178b29589617a (diff)
downloadp5-Git-Annex-3b9177df7acd25e7169619200bc930b7f6b23d86.tar.gz
simplify BUILDARGS slightly
Signed-off-by: Sean Whitton <spwhitton@spwhitton.name>
-rw-r--r--lib/Git/Annex.pm4
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/Git/Annex.pm b/lib/Git/Annex.pm
index 209c55f..ef697ea 100644
--- a/lib/Git/Annex.pm
+++ b/lib/Git/Annex.pm
@@ -301,9 +301,7 @@ has annex => (
default => sub { bless \$_[0] => "Git::Annex::Wrapper" });
around BUILDARGS => sub {
- my (undef, undef, @args) = @_;
-
- my $toplevel = $args[0] ? rel2abs($args[0]) : getcwd;
+ my $toplevel = $_[2] ? rel2abs($_[2]) : getcwd;
# if we're in a working tree, rise up to the root of the working
# tree -- for flexibility, don't require that we're actually in a