aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHugo Hörnquist <hugo@hornquist.se>2020-02-14 00:12:38 +0100
committerHugo Hörnquist <hugo@hornquist.se>2020-02-14 00:12:38 +0100
commit106d832e38e52161441ea33b59418002a5dfda56 (patch)
treee6f6fffa144f44001c04c2f8ab38c7cbf8b77ec6
parentFix date/-time<. (diff)
downloadcalp-106d832e38e52161441ea33b59418002a5dfda56.tar.gz
calp-106d832e38e52161441ea33b59418002a5dfda56.tar.xz
Move stream-null? in group-stream.
-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))))