Merge pull request #3040 from chengzhichao-xydt/codex/model-status-type-assert

fix: add ok check for singleflight type assertion in model probe
This commit is contained in:
Mauro
2026-06-07 15:03:45 +02:00
committed by GitHub
+4 -1
View File
@@ -208,7 +208,10 @@ func (s *modelProbeCacheState) probe(cacheKey string, probeFunc func() bool) boo
return result, nil return result, nil
}) })
result, _ := v.(bool) result, ok := v.(bool)
if !ok {
return false
}
return result return result
} }