Skip to content

Fix Staticcheck nil-guard warnings blocking the release - #408

Merged
AndreyVMarkelov merged 2 commits into
dropbox:masterfrom
AndreyVMarkelov:andreymarkelov/fix-release-staticcheck
Nov 18, 2026
Merged

AndreyVMarkelov merged 2 commits into
dropbox:masterfrom
AndreyVMarkelov:andreymarkelov/fix-release-staticcheck

Conversation

@AndreyVMarkelov

Copy link
Copy Markdown
Contributor

The v3.8.1 release workflow stops at Staticcheck SA5011 findings in eight test nil guards, preventing the remaining validation and release steps from running.

Add explicit returns after the existing fatal assertions so control flow is unambiguous to the analyzer before the guarded pointers are dereferenced. This changes eight test lines and leaves production code and assertions unchanged.

Failing run: https://github.com/dropbox/dbxcli/actions/runs/44246445255

Validated with the release toolchain (Go 1.26.11 and golangci-lint 2.12.2):

  • golangci-lint run — 0 issues
  • go test ./...
  • go vet ./...
  • go build ./...
  • git diff --check

@AndreyVMarkelov
AndreyVMarkelov merged commit a9101c1 into dropbox:master Nov 18, 2026
14 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.

1 participant