From 19f1f4d295099df8c25aefdec5642a3f83b26962 Mon Sep 17 00:00:00 2001 From: hujambo-dunia Date: Sat, 20 Jul 2024 14:11:56 -0400 Subject: [PATCH] Code structure clean-up --- lib/galaxy/datatypes/tabular.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/galaxy/datatypes/tabular.py b/lib/galaxy/datatypes/tabular.py index fab0b5893334..68e64fcce99a 100644 --- a/lib/galaxy/datatypes/tabular.py +++ b/lib/galaxy/datatypes/tabular.py @@ -1814,7 +1814,7 @@ def set_meta( with open(dataset.get_file_name()) as dataset_fh: comment_lines = 0 column_headers = None - cleaned_column_types = None + cleaned_column_types = [] number_of_columns = 0 for i, line in enumerate(dataset_fh): line = line.strip("\n") @@ -1822,7 +1822,6 @@ def set_meta( if line.startswith("#h"): column_headers = line.split("\t")[1:] elif line.startswith("#f"): - cleaned_column_types = [] for column_type in line.split("\t")[1:]: if column_type == "Hex": cleaned_column_types.append("str")