style: switch lint

dev
zt2 2022-02-28 00:04:35 +08:00
parent 03612a28b8
commit 4e384e3814
1 changed files with 2 additions and 2 deletions

View File

@ -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))
}
}