mirror of
https://github.com/wassname/catalyst.git
synced 2026-07-07 06:06:04 +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:
@@ -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