feed the linter

This commit is contained in:
Patrick Devine 2024-04-24 20:54:27 -07:00
parent 686178b6c5
commit c0314cc41c

View File

@ -752,16 +752,16 @@ func getGGMLData(model *Model) ([]byte, error) {
kvMap := make(map[string]any)
for _, k := range keys {
v := kv[k]
val := kv[k]
switch v.(type) {
switch v := val.(type) {
case []interface{}:
if len(v.([]interface{})) > 5 {
if len(v) > 5 {
kvMap[k] = []string{}
continue
}
}
kvMap[k] = v
kvMap[k] = val
}
ggmlMap := make(map[string]any)