[migration][util] handle nil slice without error log
This commit is contained in:
parent
6cceb8af26
commit
d4202897e1
|
@ -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{})
|
||||
|
|
Loading…
Reference in New Issue