mirror of
https://github.com/morluto/rea.git
synced 2026-12-06 14:59:05 +00:00
refactor(website): reuse validated README edition paths (#17371)
This commit is contained in:
1 parent
80202a23e7
commit
20422320ac
1 file changed
+1
-1
@@ -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
|
||||
|
||||
|
||||
Reference in new issue
Block a user