aboutsummaryrefslogtreecommitdiff
path: root/module/vcomponent/group.scm
diff options
context:
space:
mode:
Diffstat (limited to 'module/vcomponent/group.scm')
-rw-r--r--module/vcomponent/group.scm8
1 files changed, 4 insertions, 4 deletions
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))))