commit 3d2ca81371c1f8f8e5b892d71564beff85eb2730
parent 8512349a2acc965fc0d5dca8fcb0505e97a10a3b
Author: Kyle Milz <kyle@0x30.net>
Date: Thu, 16 Jun 2016 22:34:31 -0600
Test: let Package be instantiated w/o arguments
Diffstat:
1 file changed, 2 insertions(+), 0 deletions(-)
diff --git a/Test/Package.pm b/Test/Package.pm
@@ -11,6 +11,8 @@ sub new {
my $self = {};
bless($self, $class);
+ return $self if (! defined ($dist_name));
+
# Create temporary directory for the contents of this package.
my $dir = tempdir( CLEANUP => 1 );
$self->{dir} = $dir;