chore(parser): rename struct variable
This commit is contained in:
parent
b4e706f8e9
commit
72df2ce33c
|
@ -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,
|
[]stage.ParserResult, bool, error,
|
||||||
) {
|
) {
|
||||||
conf, err := stage.DecodeConf[Conf](confAny)
|
conf, err := stage.DecodeConf[Conf](confAny)
|
||||||
|
@ -69,7 +69,7 @@ func (k *Keyword) Run(results []stage.ExecutorResult, confAny any) (
|
||||||
var res []stage.ParserResult
|
var res []stage.ParserResult
|
||||||
forceQuit := false
|
forceQuit := false
|
||||||
for _, result := range results {
|
for _, result := range results {
|
||||||
parseRes := k.parse(result, *conf)
|
parseRes := p.parse(result, *conf)
|
||||||
if conf.ForceQuitOnDeduct && parseRes.Score < conf.Score {
|
if conf.ForceQuitOnDeduct && parseRes.Score < conf.Score {
|
||||||
forceQuit = true
|
forceQuit = true
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user