소스 검색

minor fix on no data

Innocenty Enikeew 8 년 전
부모
커밋
9fc54dc822
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      pta-ledger.lisp

+ 1 - 1
pta-ledger.lisp

@@ -538,7 +538,7 @@
 
 (defun format-balance (balance)
   (let* ((accounts (alexandria:hash-table-keys balance))
-         (max-account-length (apply #'max (mapcar #'length accounts))))
+         (max-account-length (if accounts (apply #'max (mapcar #'length accounts)) 20)))
     (with-output-to-string (s)
       (loop for account in (sort accounts #'string<)
          for amounts = (gethash account balance)