Skip to content

Commit 8f16b04

Browse files
committed
only pass %params to new in instance method
1 parent 47c7466 commit 8f16b04

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

lib/Geo/Address/Formatter.pm

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,10 +112,10 @@ Optional parameters are as in the B<new> method.
112112
my $instance;
113113

114114
sub instance {
115-
my ($class, %params) = @_;
115+
my ($class, %params) = @_;
116116

117117
unless ($instance) {
118-
$instance = $class->new(@_);
118+
$instance = $class->new(%params);
119119
}
120120

121121
say STDERR "************* in Geo::Address::Formatter::instance ***" if ($debug);

0 commit comments

Comments
 (0)