.github: add a staticcheck action (#326)

Add a staticcheck step to the lint job of the Test workflow, and fix
reported diagnostics.
This commit is contained in:
Robert Findley 2025-08-19 14:58:01 -04:00 • committed by GitHub
commit 46ba813860
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -719,10 +719,10 @@ func (c *Connection) processResult(from any, req *incomingRequest, result any, e
} else if err != nil {
err = fmt.Errorf("%w: %q notification failed: %v", ErrInternal, req.Method, err)
}
if err != nil {
// TODO: can/should we do anything with this error beyond writing it to the event log?
// (Is this the right label to attach to the log?)
}
}
if err != nil {
// TODO: can/should we do anything with this error beyond writing it to the event log?
// (Is this the right label to attach to the log?)
}
// Cancel the request to free any associated resources.