Skip to content

Commit f9662b8

Browse files
authored
Remove dead code in Base.retry (#47718)
y === nothing is always false inside of while y !== nothing loop.
1 parent 42ac4b1 commit f9662b8

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

base/error.jl

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,6 @@ function retry(f; delays=ExponentialBackOff(), check=nothing)
295295
try
296296
return f(args...; kwargs...)
297297
catch e
298-
y === nothing && rethrow()
299298
if check !== nothing
300299
result = check(state, e)
301300
state, retry_or_not = length(result) == 2 ? result : (state, result)

0 commit comments

Comments
 (0)