Skip to content

Commit

Permalink
fix: get NodeJSStatic failure (#2005)
Browse files Browse the repository at this point in the history
Signed-off-by: 张启航 <[email protected]>
  • Loading branch information
ZhangSetSail authored Nov 13, 2024
1 parent 2788ff7 commit 1329d10
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions builder/parser/code/lang.go
Original file line number Diff line number Diff line change
Expand Up @@ -234,9 +234,7 @@ func nodejs(homepath string) Lang {
}
func nodeJSStatic(homepath string) Lang {
if ok, _ := util.FileExists(path.Join(homepath, "package.json")); ok {
if ok, _ := util.FileExists(path.Join(homepath, "nodestatic.json")); ok {
return NodeJSStatic
}
return NodeJSStatic
}
return NO
}
Expand Down

0 comments on commit 1329d10

Please sign in to comment.