Simplify conditional code (#39781)

* Use !=

Signed-off-by: cyy <cyyever@outlook.com>

* Use get

Signed-off-by: cyy <cyyever@outlook.com>

* Format

* Simplify bool operations

Signed-off-by: cyy <cyyever@outlook.com>

---------

Signed-off-by: cyy <cyyever@outlook.com>
This commit is contained in:
Yuanyuan Chen
2025-07-30 20:32:10 +08:00
committed by GitHub
parent b94929eb49
commit 1e0665a191
172 changed files with 229 additions and 297 deletions

View File

@@ -1059,7 +1059,7 @@ if __name__ == "__main__":
runner_not_available = False
runner_failed = False
# Some jobs don't depend (`needs`) on the job `setup`: in this case, the status of the job `setup` is `skipped`.
setup_failed = False if setup_status in ["skipped", "success"] else True
setup_failed = setup_status not in ["skipped", "success"]
org = "huggingface"
repo = "transformers"