Skip to content

Commit 14518d9

Browse files
fix(contriv/fvuls) initialize optional map (future-architect#1469)
1 parent 948f8c0 commit 14518d9

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

contrib/future-vuls/cmd/main.go

+3
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,9 @@ func main() {
7575
}
7676
scanResult.ServerUUID = serverUUID
7777
if 0 < len(tags) {
78+
if scanResult.Optional == nil {
79+
scanResult.Optional = map[string]interface{}{}
80+
}
7881
scanResult.Optional["VULS_TAGS"] = tags
7982
}
8083

0 commit comments

Comments
 (0)