feed the linter
This commit is contained in:
parent
686178b6c5
commit
c0314cc41c
@ -752,16 +752,16 @@ func getGGMLData(model *Model) ([]byte, error) {
|
|||||||
kvMap := make(map[string]any)
|
kvMap := make(map[string]any)
|
||||||
|
|
||||||
for _, k := range keys {
|
for _, k := range keys {
|
||||||
v := kv[k]
|
val := kv[k]
|
||||||
|
|
||||||
switch v.(type) {
|
switch v := val.(type) {
|
||||||
case []interface{}:
|
case []interface{}:
|
||||||
if len(v.([]interface{})) > 5 {
|
if len(v) > 5 {
|
||||||
kvMap[k] = []string{}
|
kvMap[k] = []string{}
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
kvMap[k] = v
|
kvMap[k] = val
|
||||||
}
|
}
|
||||||
|
|
||||||
ggmlMap := make(map[string]any)
|
ggmlMap := make(map[string]any)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user