From 3cb50d1df613659ae68288a378f6f65bce3efa64 Mon Sep 17 00:00:00 2001 From: andrecs <12188364+andrecsilva@users.noreply.github.com> Date: Tue, 12 Mar 2024 11:09:07 -0300 Subject: [PATCH] fixup! Hardening suggestions for codemodder-python / sqlp-formatop (#362) --- src/codemodder/utils/clean_code.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/codemodder/utils/clean_code.py b/src/codemodder/utils/clean_code.py index 6d7bc4b1..1fae0f1b 100644 --- a/src/codemodder/utils/clean_code.py +++ b/src/codemodder/utils/clean_code.py @@ -209,7 +209,7 @@ def _handle_target(self, node): # return node.with_changes(elements = new_elements) # return None case cst.Name(): - if target_acesses := self.find_accesses(node): + if self.find_accesses(node): return node else: return None