Skip to content

test(playback): fix staticcheck SA4000 in TestValues - #4

Merged
subpathdev merged 1 commit into
mainfrom
fix/lint-sa4000
Nov 23, 2026
Merged

subpathdev merged 1 commit into
mainfrom
fix/lint-sa4000

Conversation

@subpathdev

Copy link
Copy Markdown
Owner

CI lint fails on main since #2 was merged: staticcheck SA4000 (identical expressions on both sides of !=) in internal/playback/playback_test.go:160.

The test now parses two separately written URIs ("spotify:track:1" and " spotify:track:1 ") and checks they compare equal with ==, which is what it meant to test.

Verified locally:

  • golangci-lint run ./... with docker.io/golangci/golangci-lint:v2.15.0 (the CI version) via podman: reproduces SA4000 on main, 0 issues on this branch
  • go vet ./..., go test -race ./internal/playback

Test-only change, no runtime impact.

🤖 Generated with Claude Code

staticcheck (SA4000) flagged the equality check in TestValues because
both sides were the same expression. Parse two separately written URIs
instead; the test still checks that equal URIs compare equal with ==.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@subpathdev
subpathdev merged commit 420b3d5 into main Nov 23, 2026
6 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