diff --git a/.golangci.yaml b/.golangci.yaml index e4c41518f..d0ba90716 100644 --- a/.golangci.yaml +++ b/.golangci.yaml @@ -61,7 +61,6 @@ linters: - unparam - usestdlibvars - usetesting - - whitespace settings: errcheck: check-type-assertions: true diff --git a/pkg/channels/onebot.go b/pkg/channels/onebot.go index 7238c7fe8..4576a11ce 100644 --- a/pkg/channels/onebot.go +++ b/pkg/channels/onebot.go @@ -698,7 +698,6 @@ func (c *OneBotChannel) parseMessageSegments(raw json.RawMessage, selfID int64) textParts = append(textParts, "[forward message]") default: - } } diff --git a/pkg/providers/github_copilot_provider.go b/pkg/providers/github_copilot_provider.go index 4faa9bddb..3fb15db2f 100644 --- a/pkg/providers/github_copilot_provider.go +++ b/pkg/providers/github_copilot_provider.go @@ -44,7 +44,6 @@ func NewGitHubCopilotProvider(uri string, connectMode string, model string) (*Gi Hooks: &copilot.SessionHooks{}, }) if err != nil { - client.Stop() return nil, fmt.Errorf("create session failed: %w", err) }