fix(parser/resultdetail): file format

This commit is contained in:
张泊明518370910136 2024-10-12 17:41:08 -04:00
parent 7004c5368e
commit f4662eb123
GPG Key ID: D47306D7062CDA9D

View File

@ -47,7 +47,7 @@ func (*ResultDetail) Run(results []stage.ExecutorResult, confAny any) (
} }
for _, file := range conf.ShowFiles { for _, file := range conf.ShowFiles {
content, ok := result.Files[file] content, ok := result.Files[file]
comment += fmt.Sprintf("File: `%s`:\n", file) comment += fmt.Sprintf("File `%s`:\n", file)
if ok { if ok {
comment += fmt.Sprintf("```\n%s\n```\n", content) comment += fmt.Sprintf("```\n%s\n```\n", content)
} else { } else {