Skip to content

fix: check type-assertion ok values to satisfy errcheck - #3

Merged
MYSOREZ merged 1 commit into
mainfrom
claude/vk-proxy-captcha-fix-18dts3
Jun 23, 2026
Merged

fix: check type-assertion ok values to satisfy errcheck#3
MYSOREZ merged 1 commit into
mainfrom
claude/vk-proxy-captcha-fix-18dts3

Conversation

@MYSOREZ

@MYSOREZ MYSOREZ commented Jun 23, 2026

Copy link
Copy Markdown
Owner

golangci-lint (errcheck with check-type-assertions) flagged two assertions added in the previous commits where the ok value was discarded: the captcha_img extraction and the unrecognized error_code:14 debug guard. Assert with an explicit ok and check it, matching the existing optional-field pattern in ParseVkCaptchaError.

Claude-Session: https://claude.ai/code/session_01HhExd8rxbEfhzJjBiawRQH

golangci-lint (errcheck with check-type-assertions) flagged two
assertions added in the previous commits where the ok value was
discarded: the captcha_img extraction and the unrecognized error_code:14
debug guard. Assert with an explicit ok and check it, matching the
existing optional-field pattern in ParseVkCaptchaError.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01HhExd8rxbEfhzJjBiawRQH
@MYSOREZ
MYSOREZ merged commit c6415c2 into main Jun 23, 2026
7 checks passed
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