From 9f53a04208e48d0402349dc9831fd0fb6b5662cb Mon Sep 17 00:00:00 2001 From: andrecs <12188364+andrecsilva@users.noreply.github.com> Date: Wed, 25 Oct 2023 07:15:45 -0300 Subject: [PATCH] Fixed issue with Change reporting --- src/core_codemods/sql_parameterization.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/core_codemods/sql_parameterization.py b/src/core_codemods/sql_parameterization.py index ec66f6b4..c6ae7c62 100644 --- a/src/core_codemods/sql_parameterization.py +++ b/src/core_codemods/sql_parameterization.py @@ -128,9 +128,7 @@ def transform_module_impl(self, tree: cst.Module) -> cst.Module: self.changed_nodes = {} line_number = self.get_metadata(PositionProvider, call).start.line self.file_context.codemod_changes.append( - Change( - str(line_number), SQLQueryParameterization.CHANGE_DESCRIPTION - ).to_json() + Change(line_number, SQLQueryParameterization.CHANGE_DESCRIPTION) ) result = result.visit(RemoveEmptyStringConcatenation())