Explorar el Código

minor fix on no data

Innocenty Enikeew hace 8 años
padre
commit
9fc54dc822
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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)