From e6294481bfa9ce098cb720319600adb631192276 Mon Sep 17 00:00:00 2001 From: Novecento <61213759+Novecento99@users.noreply.github.com> Date: Mon, 23 Sep 2024 13:35:16 +0200 Subject: [PATCH] removed usless check --- snap7/util/db.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/snap7/util/db.py b/snap7/util/db.py index 8e7e8b05..ffcb40b5 100644 --- a/snap7/util/db.py +++ b/snap7/util/db.py @@ -185,10 +185,9 @@ def prepare_tia_export_to_parse(txt_path: str) -> str: var_name = var_name + to_add var_names.append(var_name) - if var_type: - if var_type in valid_list: - new_line = var_offset + "\t" + var_name + "\t" + var_type - db_specification = db_specification + "\n" + new_line + if var_type in valid_list: + new_line = var_offset + "\t" + var_name + "\t" + var_type + db_specification = db_specification + "\n" + new_line return db_specification