mirror of https://github.com/tiangolo/fastapi.git
Fix bug with `all_good` flag
This commit is contained in:
parent
c70d79afe9
commit
aba58fc19d
|
|
@ -160,7 +160,8 @@ def fix_all(ctx: typer.Context, language: str):
|
|||
all_good = True
|
||||
for page in docs:
|
||||
doc_path = Path("docs") / language / "docs" / page
|
||||
all_good = all_good and process_one_page(doc_path)
|
||||
res = process_one_page(doc_path)
|
||||
all_good = all_good and res
|
||||
|
||||
if not all_good:
|
||||
raise typer.Exit(code=1)
|
||||
|
|
@ -175,7 +176,8 @@ def fix_pages(
|
|||
):
|
||||
all_good = True
|
||||
for path in doc_paths:
|
||||
all_good = all_good and process_one_page(path)
|
||||
res = process_one_page(path)
|
||||
all_good = all_good and res
|
||||
|
||||
if not all_good:
|
||||
raise typer.Exit(code=1)
|
||||
|
|
|
|||
Loading…
Reference in New Issue