Repository navigation
Drop buildSitemap's unused lastModified parameter - #1146
Merged
Merged
Conversation
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
buildSitemap(origin, lastModified = new Date())took alastModifiedthat no caller ever passed: notsrc/app/sitemap.ts, and notseo.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'ssecretalso 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 testpass (252 files, 3894 tests).Generated by Claude Code