Skip to content

Fix errcheck and ineffassign lint errors#1101

Merged
SachaProbo merged 1 commit intomainfrom
SachaProbo/fix-lint-errcheck
Apr 24, 2026
Merged

Fix errcheck and ineffassign lint errors#1101
SachaProbo merged 1 commit intomainfrom
SachaProbo/fix-lint-errcheck

Conversation

@SachaProbo
Copy link
Copy Markdown
Contributor

@SachaProbo SachaProbo commented Apr 24, 2026

Summary by cubic

Fix lint errors by making cleanup calls errcheck-safe and removing an unnecessary assignment in the agent loop. This keeps resource cleanup consistent and removes noisy lints.

  • Refactors
    • Wrap Close/RemoveAll defers with defer func() { _ = ... }() in pkg/agent/run.go, pkg/agent/tools/browser/download_pdf.go, pkg/agent/tools/browser/fetch_sitemap.go, and pkg/agent/tools/security/whois.go.
    • Remove redundant emptyOutputRetries = 0 assignment in coreLoop to satisfy ineffassign (no behavior change).

Written for commit ab5654f. Summary will update on new commits.

Signed-off-by: Sacha Al Himdani <sacha@getprobo.com>
Copy link
Copy Markdown
Contributor

@cubic-dev-ai cubic-dev-ai Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues found across 4 files

Copy link
Copy Markdown
Contributor

@gearnode gearnode left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@SachaProbo SachaProbo merged commit ab5654f into main Apr 24, 2026
18 checks passed
@SachaProbo SachaProbo deleted the SachaProbo/fix-lint-errcheck branch April 24, 2026 12:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants