Replace 'when not' to 'unless'

This commit is contained in:
Nikolay Puzanov 2022-12-05 20:26:04 +03:00
parent c91003e34b
commit daa744f8b2

View File

@ -78,7 +78,7 @@
;;; Logger
;;;
(define (logger . args)
(when (not (null? args))
(unless (null? args)
(let ((prefix
(format "~a | "
(strftime "%c" (localtime (current-time))))))
@ -179,7 +179,7 @@
(when (or (not max-file-size)
(< readed max-file-size))
(let ((data (get-bytevector-n in max-read-length)))
(when (not (eof-object? data))
(unless (eof-object? data)
(put-bytevector port data)
(loop (+ readed (bytevector-length data))))))))
#:binary #t))))