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:
parent
7270de2937
commit
d74c24339e
2 changed files with 18 additions and 16 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue