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:
commit
67eaa984c7
1 changed files with 4 additions and 1 deletions
|
|
@ -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
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue