From cf7b70c74445bc44d99f113182522fae64440ba9 Mon Sep 17 00:00:00 2001 From: linchizhen Date: Fri, 17 Jan 2025 17:04:18 +0800 Subject: [PATCH] refactor: use strings.EqualFold Signed-off-by: linchizhen --- commands/actions/common.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commands/actions/common.go b/commands/actions/common.go index ea1aa76..fd8499f 100644 --- a/commands/actions/common.go +++ b/commands/actions/common.go @@ -81,7 +81,7 @@ func chooseProject(rest *rest.Rest, accountID string, createNewOption bool, only include := false for _, slug := range onlySlugs { - if strings.ToLower(projectSlug) == strings.ToLower(slug) { + if strings.EqualFold(projectSlug, slug) { include = true break }