Skip to content

Comments

downloadFile: Do not wrap nil error#122

Merged
andrewkroh merged 2 commits intoandrewkroh:mainfrom
orestisfl:patch-1
Dec 10, 2025
Merged

downloadFile: Do not wrap nil error#122
andrewkroh merged 2 commits intoandrewkroh:mainfrom
orestisfl:patch-1

Conversation

@orestisfl
Copy link
Contributor

The code that checks for resp.StatusCode does not involve the err variable which is already checked to be nil earlier.

The code that checks for resp.StatusCode does not involve the err variable which is already checked to be nil earlier.
Copy link
Owner

@andrewkroh andrewkroh left a comment

Choose a reason for hiding this comment

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

Thanks

@andrewkroh andrewkroh added the bug label Dec 10, 2025
Clarify error handling for download failures.
@andrewkroh andrewkroh merged commit a9257e5 into andrewkroh:main Dec 10, 2025
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants