- dev auth flow (side-step OAuth) - db event processing integration tests - dev scripts (eg Makefile) - db / test db migration setup scripts.
1.1 KiB
1.1 KiB
Work Summary — 2026-08-04 22:56
Task
Address the two go vet "unreachable code" warnings that have been showing up alongside test runs since the test-coverage work started surfacing them.
Changes
Both were leftover dead return statements after the surrounding logic was later changed to already return on every path - simple deletions, no behavior change:
domains/accounts/accounts.go:1472(inSetListingInListingInMockSyncGroupBeingEdited's per-schema update loop): a trailingreturn nilafter aswitchwhose three cases (continue/return nil/return fmt.Errorf(...)) already cover every value ofRowsAffected(). Removed the dead line.server/sse/publisher.go:141(Push): areturn nilsitting afterreturn errors.Join(errs...), which already unconditionally returns. Removed the dead line -errors.Join(errs...)was the intended return value all along (returnsnilitself whenerrshas no non-nil entries, so behavior is unchanged).
Verification
go build ./...clean.go vet ./...now fully clean (previously exactly these two warnings).make test: full suite still green, no regressions.