mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-12-25 18:26:15 +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)
|
obj = self.__recursive__(obj, first)
|
||||||
|
|
||||||
if obj:
|
if obj:
|
||||||
if rest:
|
for item in obj:
|
||||||
for item in obj:
|
if rest:
|
||||||
self.__recursiveloop__(item, rest)
|
self.__recursiveloop__(item, rest)
|
||||||
else:
|
else:
|
||||||
for item in obj:
|
|
||||||
yield item
|
yield item
|
||||||
|
|
||||||
def __recursive__(self, obj, keys):
|
def __recursive__(self, obj, keys):
|
||||||
|
|
Loading…
Reference in a new issue