mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-09-24 16:30:27 +08:00
Simplify html extension check
Simplified the check a bit here since `endswith` will cover the previous check and also I've removed the preceding `.` to make sure the old check is still covered.
This commit is contained in:
@@ -369,7 +369,7 @@ class Data(metaclass=DataMeta):
|
||||
"""
|
||||
rel_paths = []
|
||||
file_paths = []
|
||||
if dataset.datatype.composite_type or dataset.extension == '.html' or dataset.extension.endswith('.html'):
|
||||
if dataset.datatype.composite_type or dataset.extension.endswith('html'):
|
||||
main_file = f"{name}.html"
|
||||
rel_paths.append(main_file)
|
||||
file_paths.append(dataset.file_name)
|
||||
|
||||
Reference in New Issue
Block a user