mirror of
https://github.com/theupdateframework/python-tuf
synced 2026-05-24 10:08:28 +00:00
Remove the unnecessary set()
The set() is not required in the OrderedDict. Signed-off-by: Kairo de Araujo <kdearaujo@vmware.com>
This commit is contained in:
parent
b6c482e1ee
commit
72d68f34fb
1 changed files with 1 additions and 1 deletions
|
|
@ -1214,7 +1214,7 @@ def __init__(
|
|||
):
|
||||
self.keys = keys
|
||||
|
||||
for role in set(roles):
|
||||
for role in roles:
|
||||
if not role or role in TOP_LEVEL_ROLE_NAMES:
|
||||
raise ValueError(
|
||||
"Delegated roles cannot be empty or use top-level role names"
|
||||
|
|
|
|||
Loading…
Reference in a new issue