Commit 3672775
committed
refactor(import[retry]) Remove unreachable post-loop dead code
why: Every path through the retry loop already returns or raises.
The last_exc tracking and post-loop _handle_http_error call were
unreachable dead code.
what:
- Remove last_exc variable declaration and assignment
- Remove post-loop _handle_http_error(last_exc) call
- Keep minimal fallback raise required by mypy (cannot statically
prove range(max_retries + 1) is non-empty)1 parent ae5b4bd commit 3672775
1 file changed
Lines changed: 0 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
410 | 410 | | |
411 | 411 | | |
412 | 412 | | |
413 | | - | |
414 | 413 | | |
415 | 414 | | |
416 | 415 | | |
| |||
419 | 418 | | |
420 | 419 | | |
421 | 420 | | |
422 | | - | |
423 | 421 | | |
424 | 422 | | |
425 | 423 | | |
| |||
438 | 436 | | |
439 | 437 | | |
440 | 438 | | |
441 | | - | |
442 | | - | |
443 | | - | |
444 | | - | |
445 | | - | |
446 | 439 | | |
447 | 440 | | |
448 | 441 | | |
| |||
0 commit comments