File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change 357357 (for/list ([rec (in-list (sort explanations > #:key fourth))])
358358 (match-define (list op expr expl cnt mcnt flows locations) rec)
359359
360+ ;; Ensure locations is always a list or handle it properly
361+ (define safe-locations (if (list? locations) locations '() ))
362+
360363 (append (list `(tr (td (code ,(~a op)))
361364 (td (code ,(~a expr)))
362365 (td (b ,(~a expl)))
363366 (td ,(~a cnt))
364367 (td ,(~a mcnt))
365- (td (code ,(string-join (map ~a locations) ", " ))))
368+ ;; Handle locations as a list or provide a fallback
369+ (td (code ,(string-join (map ~a safe-locations) ", " ))))
366370 (for/list ([flow (in-list (or flows '() ))])
367371 (match-define (list ex type v) flow)
368372 `(tr (td "↳ " ) (td (code ,(~a ex))) (td ,type) (td ,(~a v)))))))))))))
You can’t perform that action at this time.
0 commit comments