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:
Eddie Hebert
2013-03-20 13:19:39 -04:00
parent 75049fdd15
commit 5dc449ba19
+1 -1
View File
@@ -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):