Mercurial > p > roundup > code
diff roundup/cgi/client.py @ 8192:b4d7f9358ba6
chore(ruff): return/suppress boolen directly
I suppressed one 'if bool: return true else return false' so I could
see in codecov that code was returning both true and false.
| author | John Rouillard <rouilj@ieee.org> |
|---|---|
| date | Wed, 11 Dec 2024 13:29:11 -0500 |
| parents | 04c10e2189a5 |
| children | f5d6dc28d571 |
line wrap: on
line diff
--- a/roundup/cgi/client.py Wed Dec 11 13:19:49 2024 -0500 +++ b/roundup/cgi/client.py Wed Dec 11 13:29:11 2024 -0500 @@ -1396,9 +1396,8 @@ # allowing credentials. See: # https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS # under Credentials Requests and Wildcards - if (allowed_origins and allowed_origins[0] == '*' - and not credentials): - return True + return (allowed_origins and allowed_origins[0] == '*' + and not credentials) return False
