Skip to content

Commit

Permalink
Fix semgrep
Browse files Browse the repository at this point in the history
  • Loading branch information
ganglyu committed Dec 9, 2023
1 parent c0ae07c commit 295a8cb
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions sonic_db_config/db_config.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ const (
SONIC_DEFAULT_INSTANCE string = ""
)

var sonic_db_config = make(map[string]map[string]interface{})
// We will check sonic_db_config before iterate, ignore semgrep check
var sonic_db_config = make(map[string]map[string]interface{}) // nosemgrep: iterate-over-empty-map
var sonic_db_init bool
var sonic_db_multi_instance bool

Expand Down Expand Up @@ -258,5 +259,5 @@ func DbInit() {

func Init() {
sonic_db_init = false
sonic_db_config = make(map[string]map[string]interface{})
sonic_db_config = make(map[string]map[string]interface{}) // nosemgrep: iterate-over-empty-map
}

0 comments on commit 295a8cb

Please sign in to comment.