From 3b9177df7acd25e7169619200bc930b7f6b23d86 Mon Sep 17 00:00:00 2001 From: Sean Whitton Date: Mon, 10 Feb 2020 22:51:13 -0700 Subject: simplify BUILDARGS slightly Signed-off-by: Sean Whitton --- lib/Git/Annex.pm | 4 +--- 1 file changed, 1 insertion(+), 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 -- cgit v1.2.3