From 4e384e3814aa9258b70465f2fd79acb41ec340c6 Mon Sep 17 00:00:00 2001 From: zt2 Date: Mon, 28 Feb 2022 00:04:35 +0800 Subject: [PATCH] style: switch lint --- v2/pkg/reporting/format/format.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/v2/pkg/reporting/format/format.go b/v2/pkg/reporting/format/format.go index baaca4bb..14153037 100644 --- a/v2/pkg/reporting/format/format.go +++ b/v2/pkg/reporting/format/format.go @@ -182,9 +182,9 @@ func ToMarkdownTableString(templateInfo *model.Info) string { toMarkDownTable := func(insertionOrderedStringMap *utils.InsertionOrderedStringMap) { insertionOrderedStringMap.ForEach(func(key string, value interface{}) { - switch value.(type) { + switch value := value.(type) { case string: - if utils.IsNotBlank(value.(string)) { + if utils.IsNotBlank(value) { builder.WriteString(fmt.Sprintf("| %s | %s |\n", key, value)) } }