simplify switch statement
Signed-off-by: Gabriel Adrian Samfira <gsamfira@cloudbasesolutions.com>
This commit is contained in:
parent
bef8f30d63
commit
e3ffc153d2
1 changed files with 1 additions and 3 deletions
|
|
@ -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 ""
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue