mirror of https://github.com/daffainfo/nuclei.git
style: switch lint
parent
03612a28b8
commit
4e384e3814
|
@ -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))
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue