Skip to content

Commit

Permalink
refactor: remove additional checking
Browse files Browse the repository at this point in the history
  • Loading branch information
rahmatrhd committed Aug 29, 2023
1 parent b5af010 commit e197d53
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions plugins/providers/gcloudiam/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -195,10 +195,6 @@ func (p *Provider) RevokeAccess(pc *domain.ProviderConfig, g domain.Grant) error
}

func (p *Provider) GetRoles(pc *domain.ProviderConfig, resourceType string) ([]*domain.Role, error) {
if resourceType != ResourceTypeProject && resourceType != ResourceTypeOrganization {
return nil, ErrInvalidResourceType
}

return provider.GetRoles(pc, resourceType)
}

Expand Down

0 comments on commit e197d53

Please sign in to comment.