Skip to content

Commit 38f08b5

Browse files
authored
Merge pull request #1 from bayashi/tiny-fix-to-build
fix for no_use_vars.t
2 parents 9b5aa05 + 8aa52c1 commit 38f08b5

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

lib/Amazon/CreatorsAPI/Auth.pm

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ sub new {
3535
credential_secret => $credential_secret,
3636
credential_version => $credential_version,
3737
is_lwa => !!($credential_version =~ m!^3\.!),
38-
auth_endpoint => $opt->{auth_endpoint} || $class->_auth_endpoint($credential_version),
38+
auth_endpoint => $opt->{auth_endpoint} || _auth_endpoint($credential_version),
3939
ua => $opt->{ua} || HTTP::Tiny->new,
4040
grant_type => $opt->{grant_type} || 'client_credentials',
4141
access_token => '',
@@ -130,7 +130,6 @@ my $AUTH_ENDPOINT_MAP = {
130130
};
131131

132132
sub _auth_endpoint {
133-
my $class = shift;
134133
my $version = shift;
135134

136135
if (!$version || !exists $AUTH_ENDPOINT_MAP->{$version}) {

0 commit comments

Comments
 (0)