mirror of
https://github.com/wassname/catalyst.git
synced 2026-10-28 12:51:29 +08:00
MAINT: Changes boolean check for snapshot existence in performance.
Small tweak to check for existence of elements using built-in boolean of lists, instead of checking for `len`.
This commit is contained in:
1 parent
75049fdd15
commit
5dc449ba19
1 file changed
+1
-1
@@ -215,7 +215,7 @@ class PerformanceTracker(object):
|
||||
|
||||
new_snapshot.append(event)
|
||||
|
||||
if len(new_snapshot) > 0:
|
||||
if new_snapshot:
|
||||
yield date, new_snapshot
|
||||
|
||||
def get_portfolio(self):
|
||||
|
||||
Reference in new issue
Block a user