chore: trim old code
This commit is contained in:
parent
b7a3e51d19
commit
1075ab5342
|
@ -90,18 +90,6 @@ def convert(repo_conf: repo.Config, task_conf: task.Config) -> result.Config:
|
||||||
if task_stage.result_detail is not None:
|
if task_stage.result_detail is not None:
|
||||||
result_detail_parser.with_.update(task_stage.result_detail)
|
result_detail_parser.with_.update(task_stage.result_detail)
|
||||||
|
|
||||||
if "dummy" in task_stage.parsers:
|
|
||||||
dummy_parser = next(p for p in conf_stage.parsers if p.name == "dummy")
|
|
||||||
if task_stage.dummy is not None:
|
|
||||||
dummy_parser.with_.update(task_stage.dummy)
|
|
||||||
|
|
||||||
if "result-status" in task_stage.parsers:
|
|
||||||
result_status_parser = next(
|
|
||||||
p for p in conf_stage.parsers if p.name == "result-status"
|
|
||||||
)
|
|
||||||
if task_stage.result_status is not None:
|
|
||||||
result_status_parser.with_.update(task_stage.result_status)
|
|
||||||
|
|
||||||
conf_stage = fix_comment(task_stage, conf_stage)
|
conf_stage = fix_comment(task_stage, conf_stage)
|
||||||
conf_stage = fix_keyword(task_stage, conf_stage)
|
conf_stage = fix_keyword(task_stage, conf_stage)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user