summaryrefslogtreecommitdiff
path: root/src/filters.cc
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2009-02-07 18:41:52 -0400
committerJohn Wiegley <johnw@newartisans.com>2009-02-07 18:41:52 -0400
commit1de748fc133b005f44ca0a3fe496aede3ae4c35d (patch)
tree4c3916250dc457a96de9ea179dc7d7372452eb74 /src/filters.cc
parent08bc27ff0dae8183b540d30dd9c3fe3b3efffeda (diff)
downloadfork-ledger-1de748fc133b005f44ca0a3fe496aede3ae4c35d.tar.gz
fork-ledger-1de748fc133b005f44ca0a3fe496aede3ae4c35d.tar.bz2
fork-ledger-1de748fc133b005f44ca0a3fe496aede3ae4c35d.zip
Removed an unnecessary boolean test.
Diffstat (limited to 'src/filters.cc')
-rw-r--r--src/filters.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/filters.cc b/src/filters.cc
index 45c3fdaa..a0d65478 100644
--- a/src/filters.cc
+++ b/src/filters.cc
@@ -309,7 +309,7 @@ void collapse_xacts::operator()(xact_t& xact)
// If we've reached a new entry, report on the subtotal
// accumulated thus far.
- if (last_entry && last_entry != xact.entry && count > 0)
+ if (last_entry != xact.entry && count > 0)
report_subtotal();
xact.add_to_value(subtotal);