Commit e3748da8 authored by erio's avatar erio
Browse files

fix(lint): handle errcheck for strings.Builder.WriteString

parent 36e6fb5f
......@@ -495,14 +495,14 @@ func (s *GatewayService) GenerateSessionHash(parsed *ParsedRequest) string {
if parsed.System != nil {
systemText := s.extractTextFromSystem(parsed.System)
if systemText != "" {
combined.WriteString(systemText)
_, _ = combined.WriteString(systemText)
}
}
for _, msg := range parsed.Messages {
if m, ok := msg.(map[string]any); ok {
msgText := s.extractTextFromContent(m["content"])
if msgText != "" {
combined.WriteString(msgText)
_, _ = combined.WriteString(msgText)
}
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment