[GH-ISSUE #4439] Remove redundant docs served-language initialization #2409

Closed
opened 2026-10-21 05:47:59 +07:00 by bsakaguchi · 0 comments
Owner

Originally created by @SpicyMarinara on GitHub (Aug 1, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/4439

Originally assigned to: @SpicyMarinara on GitHub.

Problem

The v2.4.0 staging-to-main promotion surfaced a GitHub code-quality review thread in packages/server/src/routes/docs.routes.ts: the initial DEFAULT_DOCS_LANGUAGE value assigned to servedLanguage is always overwritten by fileLanguage on every path that reaches the response.

Expected behavior

Declare servedLanguage without the unused initializer while preserving the existing assignment and early-return behavior.

Scope

  • Make the one-line definite-assignment cleanup on staging.
  • Run the focused server/docs validation and baseline project check.
  • Resolve the promotion review thread after the fix reaches the promotion PR head.

Release impact

This is a no-behavior-change cleanup required to unblock the protected v2.4.0 staging promotion.

Originally created by @SpicyMarinara on GitHub (Aug 1, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/4439 Originally assigned to: @SpicyMarinara on GitHub. ## Problem The v2.4.0 staging-to-main promotion surfaced a GitHub code-quality review thread in packages/server/src/routes/docs.routes.ts: the initial DEFAULT_DOCS_LANGUAGE value assigned to servedLanguage is always overwritten by fileLanguage on every path that reaches the response. ## Expected behavior Declare servedLanguage without the unused initializer while preserving the existing assignment and early-return behavior. ## Scope - Make the one-line definite-assignment cleanup on staging. - Run the focused server/docs validation and baseline project check. - Resolve the promotion review thread after the fix reaches the promotion PR head. ## Release impact This is a no-behavior-change cleanup required to unblock the protected v2.4.0 staging promotion.
bsakaguchi 2026-10-21 05:47:59 +07:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Pasta-Devs/Marinara-Engine#2409
No description provided.