2
0
mirror of https://github.com/tenrok/axios.git synced 2026-06-08 17:22:34 +03:00

chore: remove TODO comment and dead code from http adapter error handler (#7229)

Remove commented-out code marked with @todo remove in the request error
handler. The code was already disabled and no longer needed.
This commit is contained in:
KT0803
2025-11-18 12:10:53 +05:30
committed by GitHub
parent 860e03396a
commit 8092aee724
-2
View File
@@ -816,8 +816,6 @@ export default isHttpAdapterSupported && function httpAdapter(config) {
// Handle errors
req.on('error', function handleRequestError(err) {
// @todo remove
// if (req.aborted && err.code !== AxiosError.ERR_FR_TOO_MANY_REDIRECTS) return;
reject(AxiosError.from(err, null, config, req));
});