feat(parser/dummy): support force quit
This commit is contained in:
parent
6cb6cb1f67
commit
08cd9d287b
|
@ -7,6 +7,7 @@ import (
|
|||
type Conf struct {
|
||||
Score int
|
||||
Comment string
|
||||
ForceQuit bool
|
||||
}
|
||||
|
||||
type Dummy struct{}
|
||||
|
@ -22,5 +23,5 @@ func (*Dummy) Run(results []stage.ExecutorResult, confAny any) (
|
|||
for range results {
|
||||
res = append(res, stage.ParserResult{Score: conf.Score, Comment: conf.Comment})
|
||||
}
|
||||
return res, false, nil
|
||||
return res, conf.ForceQuit, nil
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user