Skip to content

Commit 50f0e81

Browse files
author
luotianqi
committed
fix bug: go no vulnerability
1 parent 2f4620f commit 50f0e81

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

internal/enum/language/language.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ func (l Type) Vuln() string {
6161
case Ruby:
6262
return "ruby"
6363
case Golang:
64-
return "go"
64+
return "golang"
6565
default:
6666
return ""
6767
}

internal/srt/version.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,11 @@ func (ver *Version) weight() (weight int) {
3131
// 后缀在后缀列表中取对应后缀权重
3232
weight = w
3333
} else {
34-
// 后缀不在后缀列表中权重为5
35-
weight = 5
34+
// 后缀不在后缀列表中
35+
weight = 8
3636
}
3737
} else {
38-
// 不存在后缀权重为4
38+
// 不存在后缀
3939
weight = 6
4040
}
4141
return weight

0 commit comments

Comments
 (0)