Skip to content

Commit

Permalink
remove named returns
Browse files Browse the repository at this point in the history
  • Loading branch information
bwagner5 committed Nov 10, 2021
1 parent 069c651 commit 2ef451c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/cloudprovider/aws/instancetypes.go
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ func (p *InstanceTypeProvider) Get(ctx context.Context, constraints *v1alpha1.Co
return result, nil
}

func (p *InstanceTypeProvider) getInstanceTypeZones(ctx context.Context) (result map[string]sets.String, err error) {
func (p *InstanceTypeProvider) getInstanceTypeZones(ctx context.Context) (map[string]sets.String, error) {
if cached, ok := p.cache.Get(instanceTypeZonesCacheKey); ok {
return cached.(map[string]sets.String), nil
}
Expand All @@ -103,7 +103,7 @@ func (p *InstanceTypeProvider) getInstanceTypeZones(ctx context.Context) (result
}

// getInstanceTypes retrieves all instance types from the ec2 DescribeInstanceTypes API using some opinionated filters
func (p *InstanceTypeProvider) getInstanceTypes(ctx context.Context) (result map[string]*InstanceType, err error) {
func (p *InstanceTypeProvider) getInstanceTypes(ctx context.Context) (map[string]*InstanceType, error) {
if cached, ok := p.cache.Get(instanceTypesCacheKey); ok {
return cached.(map[string]*InstanceType), nil
}
Expand Down

0 comments on commit 2ef451c

Please sign in to comment.