Skip to content

Commit

Permalink
gopbuild: fix ClassKind
Browse files Browse the repository at this point in the history
  • Loading branch information
visualfc committed Jan 24, 2024
1 parent c6e9482 commit 66586ec
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 66586ec

Please sign in to comment.