chore(parser): rename struct variable
All checks were successful
submodules sync / sync (push) Successful in 53s
build / build (push) Successful in 2m9s
build / trigger-build-image (push) Successful in 9s

This commit is contained in:
张泊明518370910136 2025-02-17 12:04:39 -05:00
parent b4e706f8e9
commit 72df2ce33c
GPG Key ID: D47306D7062CDA9D

View File

@ -59,7 +59,7 @@ func (*Keyword) parse(executorResult stage.ExecutorResult, conf Conf) stage.Pars
}
}
func (k *Keyword) Run(results []stage.ExecutorResult, confAny any) (
func (p *Keyword) Run(results []stage.ExecutorResult, confAny any) (
[]stage.ParserResult, bool, error,
) {
conf, err := stage.DecodeConf[Conf](confAny)
@ -69,7 +69,7 @@ func (k *Keyword) Run(results []stage.ExecutorResult, confAny any) (
var res []stage.ParserResult
forceQuit := false
for _, result := range results {
parseRes := k.parse(result, *conf)
parseRes := p.parse(result, *conf)
if conf.ForceQuitOnDeduct && parseRes.Score < conf.Score {
forceQuit = true
}