Skip to content

Commit

Permalink
Removed unnecessary additional return (allegroai#671)
Browse files Browse the repository at this point in the history
  • Loading branch information
mralgos committed Jun 4, 2022
1 parent 895183e commit 355ecd4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions clearml/datasets/dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -1692,7 +1692,7 @@ def _create_ds_target_folder(self, part=None, num_parts=None, lock_target_folder
if lock_target_folder:
cache.lock_cache_folder(local_folder)
local_folder.mkdir(parents=True, exist_ok=True)
return local_folder, cache
return local_folder

def _release_lock_ds_target_folder(self, target_folder):
# type: () -> None
Expand Down Expand Up @@ -1751,7 +1751,7 @@ def _merge_datasets(self, use_soft_links=None, raise_on_error=True, part=None, n
num_parts = self.get_num_chunks()

# just create the dataset target folder
target_base_folder, cache = self._create_ds_target_folder(
target_base_folder = self._create_ds_target_folder(
part=part, num_parts=num_parts, lock_target_folder=True)

# selected specific chunks if `part` was passed
Expand Down

0 comments on commit 355ecd4

Please sign in to comment.