From 95ae575f413da98dad1051bfd320484383efd434 Mon Sep 17 00:00:00 2001 From: pierrejeambrun Date: Wed, 10 Aug 2022 21:52:45 +0200 Subject: [PATCH] Remove useless statement in task_group_to_grid --- airflow/www/views.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/airflow/www/views.py b/airflow/www/views.py index 4e3a7b9e36256..4e19292fce50b 100644 --- a/airflow/www/views.py +++ b/airflow/www/views.py @@ -321,13 +321,11 @@ def set_overall_state(record): record['state'] = state break if None in record['mapped_states']: - # When turnong the dict into JSON we can't have None as a key, so use the string that - # the UI does + # When turning the dict into JSON we can't have None as a key, + # so use the string that the UI does. record['mapped_states']['no_status'] = record['mapped_states'].pop(None) for ti_summary in ti_summaries: - if ti_summary.state is None: - ti_summary.state == 'no_status' if run_id != ti_summary.run_id: run_id = ti_summary.run_id if record: