From 10184d4bb71a15f8b99b46edf9347a60bc5cbec6 Mon Sep 17 00:00:00 2001 From: clavedeluna Date: Thu, 15 Feb 2024 15:27:32 -0300 Subject: [PATCH] remove unused var --- src/core_codemods/flask_json_response_type.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core_codemods/flask_json_response_type.py b/src/core_codemods/flask_json_response_type.py index f71723f0..7e1b5aa0 100644 --- a/src/core_codemods/flask_json_response_type.py +++ b/src/core_codemods/flask_json_response_type.py @@ -182,7 +182,7 @@ def _has_content_type_set(self, node: cst.BaseExpression) -> bool: maybe_subscript = ( self.is_subscript_value(maybe_attr) if maybe_attr else None ) - if maybe_assignment := ( + if ( self.is_target_of_assignment(maybe_subscript) if maybe_subscript else None