lint: finish errcheck — zero remaining

Fix final cW calls in middleware/recoverer.go and
sendTextCommandResponse in platform/text/text.go.
This commit is contained in:
Eli Ribble 2026-05-09 14:24:33 +00:00
parent 7270de2937
commit d74c24339e
2 changed files with 18 additions and 16 deletions

View file

@ -132,7 +132,9 @@ func respondText(ctx context.Context, log_id int32) error {
if err != nil {
log.Error().Err(err).Msg("Failed to wipe memory")
content := "Failed to wipe memory"
sendTextCommandResponse(ctx, txn, *src, content)
lint.LogOnErrCtx(func(ctx context.Context) error {
return sendTextCommandResponse(ctx, txn, *src, content)
}, ctx, "send text command response")
return fmt.Errorf("reset conversation: %w", err)
}
return nil