summaryrefslogtreecommitdiff
path: root/src/report.cc
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@fpcomplete.com>2013-01-31 04:56:12 -0600
committerJohn Wiegley <johnw@fpcomplete.com>2013-01-31 04:56:12 -0600
commit9e9d99e9187093b459525e3fd7e654d57000c3c4 (patch)
tree773d00b7ba0b40905e87b3506968e824faa0e72b /src/report.cc
parentce169b3b48b76c6825d22e41f29a6b2bfa34f371 (diff)
downloadfork-ledger-9e9d99e9187093b459525e3fd7e654d57000c3c4.tar.gz
fork-ledger-9e9d99e9187093b459525e3fd7e654d57000c3c4.tar.bz2
fork-ledger-9e9d99e9187093b459525e3fd7e654d57000c3c4.zip
Removed an unnecessary if. Fixes #140
Diffstat (limited to 'src/report.cc')
-rw-r--r--src/report.cc3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/report.cc b/src/report.cc
index d90d22e4..d0b64650 100644
--- a/src/report.cc
+++ b/src/report.cc
@@ -693,8 +693,7 @@ value_t report_t::fn_round(call_scope_t& args)
value_t report_t::fn_roundto(call_scope_t& args)
{
- if(args.has<int>(1))
- return args[0].roundto(args.get<int>(1));
+ return args[0].roundto(args.get<int>(1));
}
value_t report_t::fn_unround(call_scope_t& args)