Skip to content

Commit

Permalink
Merge pull request #263 from visualfc/main
Browse files Browse the repository at this point in the history
gopbuild: fix ClassKind
  • Loading branch information
visualfc authored Jan 24, 2024
2 parents c6e9482 + 66586ec commit ae77c07
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gopbuild/build.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ae77c07

Please sign in to comment.