feat(parser/keyword): remove min score
All checks were successful
submodules sync / sync (push) Successful in 40s
build / build (push) Successful in 1m21s
build / trigger-build-image (push) Successful in 7s

This commit is contained in:
张泊明518370910136 2024-11-01 03:38:22 -04:00
parent 03c2819d25
commit e4dc1adc13
GPG Key ID: D47306D7062CDA9D

View File

@ -16,7 +16,6 @@ type Match struct {
type Conf struct { type Conf struct {
Score int Score int
FullScore int // TODO: remove me FullScore int // TODO: remove me
MinScore int
Files []string Files []string
ForceQuitOnMatch bool ForceQuitOnMatch bool
Matches []Match Matches []Match
@ -47,7 +46,7 @@ func Parse(executorResult stage.ExecutorResult, conf Conf) (
} }
} }
return stage.ParserResult{ return stage.ParserResult{
Score: max(score, conf.MinScore), Score: score,
Comment: comment, Comment: comment,
}, matched }, matched
} }