Skip to content

Commit

Permalink
[investment-lots] tidier cons instead of append
Browse files Browse the repository at this point in the history
(append (list new-item) (map...)) is more succinctly formed as
(cons new-item (map...))
  • Loading branch information
christopherlam committed Dec 24, 2022
1 parent d928ed4 commit c21aecc
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions gnucash/report/reports/standard/investment-lots.scm
Original file line number Diff line number Diff line change
Expand Up @@ -1396,10 +1396,8 @@
unassigned-split-count)))

((list)
(append
(list
(format #f (G_ "Warning: The following ~a split(s) are not assigned to a lot. Do lots need to be scrubbed?")
unassigned-split-count))
(cons
(format #f (G_ "Warning: The following ~a split(s) are not assigned to a lot. Do lots need to be scrubbed?") unassigned-split-count)

;; Also list out the unassigned splits.
(map (lambda (split)
Expand Down

0 comments on commit c21aecc

Please sign in to comment.