Примеры ошибок, обнаруженных с помощью диагностики V8020
V8020. Recurring check. This condition was already verified on a previous line.
axonhub
V8020 Recurring check. The 'event.Delta.Signature != nil' condition was already verified on line 96. aggregator.go 96
func AggregateStreamChunks(....) ([]byte, llm.ResponseMeta, error) {
....
if event.Delta.Thinking != nil {
if contentBlocks[index].Type == "thinking" {
if contentBlocks[index].Thinking == nil {
contentBlocks[index].Thinking = lo.ToPtr("")
}
*contentBlocks[index].Thinking += *event.Delta.Thinking
} else {
// Convert to thinking block if it's not already
contentBlocks[index].Type = "thinking"
contentBlocks[index].Thinking = event.Delta.Thinking
}
}
if event.Delta.Signature != nil { // <=
// Handle signature delta - append to thinking block signature
if contentBlocks[index].Type == "thinking" {
if event.Delta.Signature != nil { // <=
if contentBlocks[index].Signature == nil {
contentBlocks[index].Signature = event.Delta.Signature
} else {
contentBlocks[index].Signature = lo.ToPtr(....)
}
}
} else {
// Convert to thinking block if it's not already
contentBlocks[index].Type = "thinking"
contentBlocks[index].Signature = event.Delta.Signature
}
}
....
}
incus
V8020 Recurring check. The 'err != nil' condition was already verified on line 407 proxy.go 407
func (d *proxy) Start() (*deviceConfig.RunConfig, error) {
....
err = p.Save(pidPath)
if err != nil {
// Kill Process if started, but could not save the file
err2 := p.Stop()
if err != nil {
return fmt.Errorf("....: %s: %s", err, err2)
}
return fmt.Errorf("....: %w", d.name, err)
}
....
}