diff options
author | John Wiegley <johnw@fpcomplete.com> | 2013-01-31 04:56:12 -0600 |
---|---|---|
committer | John Wiegley <johnw@fpcomplete.com> | 2013-01-31 04:56:12 -0600 |
commit | 9e9d99e9187093b459525e3fd7e654d57000c3c4 (patch) | |
tree | 773d00b7ba0b40905e87b3506968e824faa0e72b /src/report.cc | |
parent | ce169b3b48b76c6825d22e41f29a6b2bfa34f371 (diff) | |
download | fork-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.cc | 3 |
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) |