Skip to content

Commit

Permalink
Remove unnecessary check
Browse files Browse the repository at this point in the history
`copy_elements` is always True if `copy_required` is True.
  • Loading branch information
nsoranzo committed Sep 26, 2023
1 parent c892e2e commit b0aabed
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions lib/galaxy/webapps/galaxy/services/history_contents.py
Original file line number Diff line number Diff line change
Expand Up @@ -1270,10 +1270,6 @@ def __create_dataset_collection(
dbkey = payload.dbkey
copy_required = dbkey is not None
copy_elements = payload.copy_elements or copy_required
if copy_required and not copy_elements:
raise exceptions.RequestParameterMissingException(
"copy_elements passed as 'false' but it is required to change specified attributes"
)
dataset_instance_attributes = {}
if dbkey is not None:
dataset_instance_attributes["dbkey"] = dbkey
Expand Down

0 comments on commit b0aabed

Please sign in to comment.