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