Skip to content

Drop buildSitemap's unused lastModified parameter - #1146

Merged
richshaw merged 1 commit into
mainfrom
claude/laughing-dijkstra-l19mbu
Nov 27, 2026
Merged

richshaw merged 1 commit into
mainfrom
claude/laughing-dijkstra-l19mbu

Conversation

@richshaw

Copy link
Copy Markdown
Owner

buildSitemap(origin, lastModified = new Date()) took a lastModified that no caller ever passed: not src/app/sitemap.ts, and not seo.test.ts. It's now a local, so the sitemap reads exactly as before (every entry dated when it's built).

How it was found: knip, noUnusedLocals/noUnusedParameters, CSS classes, env vars, error reasons, activity events and scripts were all clean, so I walked every call with the TypeScript checker looking for optional parameters no call site fills. This was the only one not filled even by a test. (hashLoginCode/encryptCallbackUrl's secret also goes unpassed, but it stays: decryptCallbackUrl's tests use the same seam on the other side.)

Checks: pnpm lint && pnpm format:check && pnpm typecheck && pnpm knip && pnpm test pass (252 files, 3894 tests).


Generated by Claude Code

No caller, in the app or its tests, ever passed it; the sitemap always
used the time it was built.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016YZ9SV94EbsXXbwGzsNAum
@richshaw
richshaw merged commit e80ce74 into main Nov 27, 2026
5 checks passed
@richshaw
richshaw deleted the claude/laughing-dijkstra-l19mbu branch November 27, 2026 17:19
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