Fix guile-2.2 syntax error

6605a6eb6 had syntax error in guile-2.2; guile-3.0 is more lenient:

definition in expression context, where definitions are not allowed
This commit is contained in:
Christopher Lam 2021-01-14 23:19:12 +08:00
parent 0b0e96c500
commit 8a0f9c55f4

View File

@ -428,8 +428,6 @@ developing over time"))
sum)
(length (filter show-acct? accts))))
(set! work-to-do (count-accounts 1 topl-accounts))
;; Calculates all account's balances. Returns a list of pairs:
;; (<account> <balance-list>), like '((Earnings (10.0 11.2))
;; (Gifts (12.3 14.5))), where each element of <balance-list>
@ -494,6 +492,8 @@ developing over time"))
(> (gnc:gnc-monetary-amount (apply gnc:monetary+ (cadr a)))
(gnc:gnc-monetary-amount (apply gnc:monetary+ (cadr b)))))))))
(set! work-to-do (count-accounts 1 topl-accounts))
(cond
((or (null? all-data) (all-zeros (map cadr all-data)))
(gnc:html-document-add-object!