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
commit 67eaa984c7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -208,7 +208,10 @@ func (s *modelProbeCacheState) probe(cacheKey string, probeFunc func() bool) boo
return result, nil
})
result, _ := v.(bool)
result, ok := v.(bool)
if !ok {
return false
}
return result
}