potiuk commented on code in PR #24399:
URL: https://github.com/apache/airflow/pull/24399#discussion_r901474033
##########
airflow/www/auth.py:
##########
@@ -37,7 +37,11 @@ def decorated(*args, **kwargs):
appbuilder = current_app.appbuilder
dag_id = (
- request.args.get("dag_id") or request.form.get("dag_id") or
(request.json or {}).get("dag_id")
+ request.args.get("dag_id")
+ or request.form.get("dag_id")
+ or request.is_json
+ and request.json.get("dag_id")
+ or None
)
Review Comment:
Yeah. Readability is king
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]