From 106d832e38e52161441ea33b59418002a5dfda56 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hugo=20H=C3=B6rnquist?= Date: Fri, 14 Feb 2020 00:12:38 +0100 Subject: Move stream-null? in group-stream. --- module/vcomponent/group.scm | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'module/vcomponent') diff --git a/module/vcomponent/group.scm b/module/vcomponent/group.scm index cf9a6b70..0cd274d1 100644 --- a/module/vcomponent/group.scm +++ b/module/vcomponent/group.scm @@ -11,10 +11,10 @@ (define-stream (group-stream in-stream) (define (ein? day) (lambda (e) (event-contains? e day))) - (let loop ((days (day-stream (as-date (attr (stream-car in-stream) 'DTSTART)))) - (stream in-stream)) - (if (stream-null? stream) - stream-null + (if (stream-null? in-stream) + stream-null + (let loop ((days (day-stream (as-date (attr (stream-car in-stream) 'DTSTART)))) + (stream in-stream)) (let* ((day (stream-car days)) (tomorow (stream-car (stream-cdr days)))) -- cgit v1.2.3