From 72df2ce33cf5aeee3cb4fa35b8bee8df1ccb1b61 Mon Sep 17 00:00:00 2001 From: Boming Zhang Date: Mon, 17 Feb 2025 12:04:39 -0500 Subject: [PATCH] chore(parser): rename struct variable --- internal/parser/keyword/parser.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/parser/keyword/parser.go b/internal/parser/keyword/parser.go index a28f1e1..d6609a3 100644 --- a/internal/parser/keyword/parser.go +++ b/internal/parser/keyword/parser.go @@ -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 }