mirror of
https://github.com/tenrok/axios.git
synced 2026-06-17 19:21:29 +03:00
5ad5fe0dc6
Flips the main if-block to an early-return pattern to reduce nesting. Explicitly initializes aborted to false. Adds a guard clause in unsubscribe to avoid duplicate cleanup. Preserves the existing manual event-listener approach because AbortSignal.any() introduces event-loop timing differences that break fetch adapter stream-abort tests. Closes #10815. Co-authored-by: mixelburg <mixelburg@gmail.com> Co-authored-by: Jay <jasonsaayman@gmail.com>