Skip to content

Commit

Permalink
Simplify: just check for both keys
Browse files Browse the repository at this point in the history
  • Loading branch information
jdavcs committed Nov 30, 2023
1 parent d85a499 commit 27beffd
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions lib/galaxy/tools/wrappers.py
Original file line number Diff line number Diff line change
Expand Up @@ -450,10 +450,6 @@ def serialize(self, invalid_chars: Sequence[str] = ("/",)) -> Dict[str, Any]:
def is_collection(self) -> bool:
return False

@property
def file_name(self) -> str:
return self.get_file_name()

def is_of_type(self, *exts: str) -> bool:
datatypes = []
if not self.datatypes_registry:
Expand All @@ -475,7 +471,7 @@ def __str__(self) -> str:
return str(self.unsanitized.get_file_name())

def __getattr__(self, key: Any) -> Any:
if self.false_path is not None and key == "get_file_name":
if self.false_path is not None and key in ("get_file_name", "file_name"):
# Path to dataset was rewritten for this job.
return lambda *args, **kwargs: self.false_path
elif key in ("extra_files_path", "files_path"):
Expand Down

0 comments on commit 27beffd

Please sign in to comment.