[migration][util] handle nil slice without error log

This commit is contained in:
Kassian Sun 2023-05-19 11:58:58 +08:00
parent 6cceb8af26
commit d4202897e1
1 changed files with 3 additions and 0 deletions

View File

@ -89,6 +89,9 @@ func GetMapStringSliceValue(m util.MapStr, key string) []string {
if err != nil {
return nil
}
if v == nil {
return nil
}
vv, ok := v.([]string)
if !ok {
vv, ok := v.([]interface{})