Skip to content

Commit 06d460d

Browse files
github-actions[bot]github-code-quality[bot]claude
committed
fix(proxy): 去掉 poisoned-docs-path 里的死赋值初始值
Co-authored-by: github-code-quality[bot] <github-code-quality[bot]@users.noreply.github.com> Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01RtSNVtrEkCsFVHrbt4Zjgi
1 parent a966850 commit 06d460d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/poisoned-docs-path.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
export function isPoisonedDocsPath(pathname: string): boolean {
1313
const stripped = pathname.replace(/^\/(zh|en)(?=\/)/, "");
1414
if (!stripped.startsWith("/docs/")) return false;
15-
let decoded = stripped;
15+
let decoded: string;
1616
try {
1717
decoded = decodeURIComponent(stripped); // 防二次编码,对齐 redirectLeetcodeIfNeeded
1818
} catch {

0 commit comments

Comments
 (0)