Check if list is empty with if instead of len()
This commit is contained in:
@@ -484,7 +484,7 @@ class Client(object):
|
|||||||
"""
|
"""
|
||||||
threads = []
|
threads = []
|
||||||
threads += self.fetchThreadList(thread_location=thread_location)
|
threads += self.fetchThreadList(thread_location=thread_location)
|
||||||
if len(threads) == 0:
|
if not threads:
|
||||||
return []
|
return []
|
||||||
while True:
|
while True:
|
||||||
lastThreadTimestamp = threads[-1].last_message_timestamp
|
lastThreadTimestamp = threads[-1].last_message_timestamp
|
||||||
|
Reference in New Issue
Block a user