Skip to content

fix(lint): collapse fts dotSplitTerms loop (S1011) - #142

Open
arreyder wants to merge 1 commit into
mainfrom
crr/fix-fts-lint-s1011
Open

fix(lint): collapse fts dotSplitTerms loop (S1011)#142
arreyder wants to merge 1 commit into
mainfrom
crr/fix-fts-lint-s1011

Conversation

@arreyder

Copy link
Copy Markdown
Contributor

Summary

Resolves the staticcheck S1011 failure introduced by #139 (cf492ec) in pgdb/v1/fts.go:426. CI lint is currently red on main and on every open PR rebased onto it.

The fix is the exact replacement staticcheck suggests: replace the trivial loop appending each element with append(slice, strings.Fields(ds)...). Behavior is identical.

Test plan

  • go vet ./... clean
  • go build ./... clean
  • CI lint passes once this lands

🤖 Generated with Claude Code

Resolves staticcheck S1011 introduced by #139, which is currently
failing CI lint on all open PRs against main.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
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