refactor(website): reuse validated README edition paths (#17371)

This commit is contained in:
Vincent Koc
2026-12-06 11:19:14 +08:00
committed by GitHub
parent 80202a23e7
commit 20422320ac
+1 -1
View File
@@ -83,7 +83,7 @@ def languages(root):
raise ValueError(f"Duplicate README edition: {item['readme']}")
codes.add(item["code"])
filenames.add(item["readme"])
if editions and ({item["readme"] for item in data} != editions):
if editions and filenames != editions:
raise ValueError("Website languages must match the README language editions")
return data