Commit 9676ad20 authored by Vincent Pelletier's avatar Vincent Pelletier

CopySupport: Simplify manage_delObjects.

These variables are only used when they evaluate as true, so it is
pointless work to replace them with empty lists.
parent 4f898898
No related merge requests found
......@@ -212,9 +212,7 @@ class CopyContainer:
The objects specified in 'ids' get deleted.
"""
if ids is None: ids = []
if uids is None: uids = []
if len(ids) > 0:
if ids:
# Use default method
return ObjectManager.manage_delObjects(self, ids, REQUEST)
if not uids:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment