enable wastedassign

Finds wasted assignment statements.

Signed-off-by: Kai Xia <kaix+github@fastmail.com>
This commit is contained in:
Kai Xia committed 2026-02-25 21:31:07 +11:00
1 parent 6830790692
commit d8b164b3d4
5 files changed
+4 -6

No files matched your search

+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),
})