fix: ruff check for True if ... else (#12576)

Signed-off-by: yihong0618 <zouzou0208@gmail.com>
This commit is contained in:
yihong 2025-01-13 09:38:48 +08:00 committed by GitHub
commit 4e101604c3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 6 additions and 7 deletions

View file

@ -87,6 +87,6 @@ class CommonValidator:
if value.lower() not in {"true", "false"}:
raise ValueError(f"Variable {credential_form_schema.variable} should be true or false")
value = True if value.lower() == "true" else False
value = value.lower() == "true"
return value