mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-12-25 02:06:09 +00:00
Hoist repeated code outside conditional statement
This commit is contained in:
parent
9d64ca41cb
commit
f6eeb49bd1
1 changed files with 3 additions and 4 deletions
|
@ -125,11 +125,10 @@ class Objects(object):
|
|||
obj = self.__recursive__(obj, first)
|
||||
|
||||
if obj:
|
||||
if rest:
|
||||
for item in obj:
|
||||
for item in obj:
|
||||
if rest:
|
||||
self.__recursiveloop__(item, rest)
|
||||
else:
|
||||
for item in obj:
|
||||
else:
|
||||
yield item
|
||||
|
||||
def __recursive__(self, obj, keys):
|
||||
|
|
Loading…
Reference in a new issue