We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 64d4e67 + cb5fa2d commit 5e640bdCopy full SHA for 5e640bd
src/web/demo.rkt
@@ -26,12 +26,12 @@
26
27
(define-coercion-match-expander hash-arg/m
28
(λ (x)
29
- (cond
30
- [(*demo-output*)
31
- (not (directory-exists? (build-path (*demo-output*) x)))]
32
- [else
33
- (let ([m (regexp-match #rx"^([0-9a-f]+)\\.[0-9a-f.]+" x)])
34
- (and m (completed-job? (second m))))]))
+ (and
+ (not
+ (and (*demo-output*) ; If we've already saved to disk, skip this job
+ (directory-exists? (build-path (*demo-output*) x))))
+ (let ([m (regexp-match #rx"^([0-9a-f]+)\\.[0-9a-f.]+" x)])
+ (and m (completed-job? (second m))))))
35
36
(let ([m (regexp-match #rx"^([0-9a-f]+)\\.[0-9a-f.]+" x)])
37
(get-results-for (if m (second m) x)))))
0 commit comments