Skip to content

Commit

Permalink
simplify switch statement
Browse files Browse the repository at this point in the history
Signed-off-by: Gabriel Adrian Samfira <gsamfira@cloudbasesolutions.com>
  • Loading branch information
gabriel-samfira committed Mar 17, 2024
1 parent bef8f30 commit e3ffc15
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions params/params.go
Original file line number Diff line number Diff line change
Expand Up @@ -667,9 +667,7 @@ func (g GithubEntity) String() string {
switch g.EntityType {
case GithubEntityTypeRepository:
return fmt.Sprintf("%s/%s", g.Owner, g.Name)
case GithubEntityTypeOrganization:
return g.Owner
case GithubEntityTypeEnterprise:
case GithubEntityTypeOrganization, GithubEntityTypeEnterprise:
return g.Owner
}
return ""
Expand Down

0 comments on commit e3ffc15

Please sign in to comment.