Skip to content

Commit

Permalink
Fix close, should return the empty list
Browse files Browse the repository at this point in the history
  • Loading branch information
tizoc committed Jul 2, 2023
1 parent caed982 commit 4d8d71e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/primitives.scm
Original file line number Diff line number Diff line change
Expand Up @@ -133,8 +133,8 @@

(define (kl:close stream)
(cond
((input-port? stream) (close-input-port stream))
((output-port? stream) (close-output-port stream))
((input-port? stream) (close-input-port stream) '())
((output-port? stream) (close-output-port stream) '())
(else (raise-error 'close "invalid stream" stream))))

(define (kl:write-byte byte o)
Expand Down

0 comments on commit 4d8d71e

Please sign in to comment.