Skip to content

Commit

Permalink
Addresses naming suggestion
Browse files Browse the repository at this point in the history
  • Loading branch information
gdavison committed Feb 18, 2022
1 parent 30f50e2 commit 0867894
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions v2/awsv1shim/credentials.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,15 +52,15 @@ func (p *v2CredentialsProvider) RetrieveWithContext(ctx credentials.Context) (cr
}

func (p *v2CredentialsProvider) IsExpired() bool {
v2creds := p.getCreds()
v2creds := p.credentials()
if v2creds != nil {
return v2creds.Expired()
}
return true
}

func (p *v2CredentialsProvider) ExpiresAt() time.Time {
v2creds := p.getCreds()
v2creds := p.credentials()
if v2creds != nil {
return v2creds.Expires
}
Expand All @@ -71,7 +71,7 @@ func (p *v2CredentialsProvider) Retrieve() (credentials.Value, error) {
return p.RetrieveWithContext(context.Background())
}

func (p *v2CredentialsProvider) getCreds() *awsv2.Credentials {
func (p *v2CredentialsProvider) credentials() *awsv2.Credentials {
v := p.v2creds.Load()
if v == nil {
return nil
Expand Down

0 comments on commit 0867894

Please sign in to comment.