From 66586ec99f5d4812b1b28fe359fb4fc15c1928aa Mon Sep 17 00:00:00 2001 From: visualfc Date: Wed, 24 Jan 2024 13:37:56 +0800 Subject: [PATCH] gopbuild: fix ClassKind --- gopbuild/build.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gopbuild/build.go b/gopbuild/build.go index f3f6c4d8..d52693db 100644 --- a/gopbuild/build.go +++ b/gopbuild/build.go @@ -151,7 +151,7 @@ func ClassKind(fname string) (isProj, ok bool) { if c, ok := projects[ext]; ok { for _, w := range c.Works { if w.Ext == ext { - if ext != c.Ext || fname != "main"+ext { + if ext != c.Ext && fname != "main"+ext { return false, true } break