From e3ffc153d2ca7c178ebf9300c46f02f6a44e135e Mon Sep 17 00:00:00 2001 From: Gabriel Adrian Samfira Date: Sun, 17 Mar 2024 18:08:46 +0000 Subject: [PATCH] simplify switch statement Signed-off-by: Gabriel Adrian Samfira --- params/params.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/params/params.go b/params/params.go index baa6c64d..2b87a4c5 100644 --- a/params/params.go +++ b/params/params.go @@ -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 ""