Skip to content

Commit

Permalink
remove unnecessary checks when defaults are available
Browse files Browse the repository at this point in the history
  • Loading branch information
pauldg committed Jan 21, 2025
1 parent 94fccd9 commit 19823f1
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions lib/galaxy/objectstore/irods.py
Original file line number Diff line number Diff line change
Expand Up @@ -225,21 +225,12 @@ def __init__(self, config, config_dict):

logical_dict = config_dict.get("logical") or {}
self.logical_path = logical_dict.get("path") or f"/{self.zone}/home/{self.username}"
if self.logical_path is None:
_config_dict_error("logical->path")

cache_dict = config_dict.get("cache") or {}
self.cache_size = cache_dict.get("size") or self.config.object_store_cache_path
if self.cache_size is None:
_config_dict_error("cache->size")
self.staging_path = cache_dict.get("path") or self.config.object_store_cache_path
if self.staging_path is None:
_config_dict_error("cache->path")
self.cache_updated_data = cache_dict.get("cache_updated_data", True)

extra_dirs = {e["type"]: e["path"] for e in config_dict.get("extra_dirs", [])}
if not extra_dirs:
_config_dict_error("extra_dirs")
self.extra_dirs.update(extra_dirs)

if irods is None:
Expand Down

0 comments on commit 19823f1

Please sign in to comment.