From 3b16a939c9165150d8145e39a78f2770e25569e4 Mon Sep 17 00:00:00 2001 From: mvdbeek Date: Tue, 12 Sep 2023 18:00:35 +0200 Subject: [PATCH] Drop unnecessary getsize guard --- lib/galaxy/metadata/set_metadata.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/galaxy/metadata/set_metadata.py b/lib/galaxy/metadata/set_metadata.py index a0641d695cf3..74312a8df1b0 100644 --- a/lib/galaxy/metadata/set_metadata.py +++ b/lib/galaxy/metadata/set_metadata.py @@ -435,7 +435,7 @@ def set_meta(new_dataset_instance, file_dict): if not object_store or not export_store: # Can't happen, but type system doesn't know raise Exception("object_store not built") - if not is_deferred and not link_data_only and os.path.getsize(external_filename): + if not is_deferred and not link_data_only: # Here we might be updating a disk based objectstore when outputs_to_working_directory is used, # or a remote object store from its cache path. object_store_update_actions.append(