Skip to content

Commit

Permalink
Fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
zbud-msft committed Nov 18, 2022
1 parent 835194b commit a0df2bf
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions sonic_data_client/db_client.go
Original file line number Diff line number Diff line change
Expand Up @@ -717,9 +717,9 @@ func tableData2Msi(tblPath *tablePath, useKey bool, op *string, msi *map[string]
var key string
// Split dbkey string into two parts and second part is key in table
keys := strings.SplitN(dbkey, tblPath.delimitor, 2)
if len(keys) < 2 {
return fmt.Errorf("dbkey: %s, failed split from delimitor %v", dbkey, tblPath.delimitor)
}
//if len(keys) < 2 {
// return fmt.Errorf("dbkey: %s, failed split from delimitor %v", dbkey, tblPath.delimitor)
//}
key = keys[1]
err = makeJSON_redis(msi, &key, op, fv)
}
Expand Down

0 comments on commit a0df2bf

Please sign in to comment.