.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

@ -178,10 +178,6 @@ type clientSessionState struct {
func (cs *ClientSession) InitializeResult() *InitializeResult { return cs.state.InitializeResult }
func (cs *ClientSession) setConn(c Connection) {
cs.mcpConn = c
}
func (cs *ClientSession) ID() string {
if c, ok := cs.mcpConn.(hasSessionID); ok {
return c.SessionID()