Remove redundant branch from retry-on-missing-store-item

I think #:unwind-for-type prevents this condition.
This commit is contained in:
Christopher Baines 2025-04-18 11:00:35 +01:00
parent 97a01853b8
commit f5614dd75d

View file

@ -123,8 +123,6 @@
(define* (retry-on-missing-store-item thunk #:key on-exception)
(with-exception-handler
(lambda (exn)
(if (missing-store-item-error? exn)
(begin
(simple-format (current-error-port)
"missing store item ~A, retrying ~A\n"
(missing-store-item-error-item exn)
@ -133,7 +131,6 @@
(retry-on-missing-store-item
thunk
#:on-exception on-exception))
(raise-exception exn)))
thunk
#:unwind? #t
#:unwind-for-type &missing-store-item-error))