enable wastedassign

Finds wasted assignment statements.

Signed-off-by: Kai Xia <kaix+github@fastmail.com>
This commit is contained in:
Kai Xia
2026-02-25 21:12:12 +11:00
parent 6830790692
commit d8b164b3d4
5 changed files with 4 additions and 6 deletions
+1 -1
View File
@@ -101,7 +101,7 @@ func (p *GitHubCopilotProvider) Chat(
return nil, fmt.Errorf("provider closed")
}
resp, err := session.SendAndWait(ctx, copilot.MessageOptions{
resp, _ := session.SendAndWait(ctx, copilot.MessageOptions{
Prompt: string(fullcontent),
})