From c161d739f43e828effba4152b96240492ffe6ff0 Mon Sep 17 00:00:00 2001 From: "shylinux@163.com" Date: Fri, 30 Sep 2022 19:53:19 +0800 Subject: [PATCH] opt some --- base/ctx/command.go | 5 ----- 1 file changed, 5 deletions(-) diff --git a/base/ctx/command.go b/base/ctx/command.go index 2348213c..2ff9328b 100644 --- a/base/ctx/command.go +++ b/base/ctx/command.go @@ -217,11 +217,6 @@ func GetFileCmd(dir string) string { if cmd, ok := ice.Info.File[FileCmd(path.Join(p, path.Base(p)+".go"))]; ok { return cmd } - for k, v := range ice.Info.File { - if strings.HasPrefix(k, p) { - return v - } - } } return "" }