remove checking resource type is composite since all resources that support unzipping are composite after migration
@@ -1057,14 +1057,11 @@ def unzip_file(user, res_id, zip_with_rel_path, bool_remove_original,
for override_tgt_path in override_tgt_paths:
if (istorage.exists(override_tgt_path)):
- if resource.resource_type == "CompositeResource":
aggregation_object = resource.get_file_aggregation_object(override_tgt_path)
if aggregation_object:
aggregation_object.logical_delete(user)
else:
istorage.delete(override_tgt_path)
- else:
- istorage.delete(override_tgt_path)
# now move each file to the destination
for file in res_files:
