milton0825 commented on a change in pull request #9282:
URL: https://github.com/apache/airflow/pull/9282#discussion_r439792578



##########
File path: airflow/www/api/experimental/endpoints.py
##########
@@ -190,7 +190,7 @@ def task_info(dag_id, task_id):
 def dag_paused(dag_id, paused):
     """(Un)pauses a dag"""
 
-    is_paused = True if paused == 'true' else False
+    is_paused = bool(paused == 'true')

Review comment:
       ```suggestion
       is_paused = paused == 'true'
   ```




----------------------------------------------------------------
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.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to