From 8092aee7240220aa7913d163187b7fba8d9e5a51 Mon Sep 17 00:00:00 2001 From: KT0803 Date: Tue, 18 Nov 2025 12:10:53 +0530 Subject: [PATCH] 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. --- lib/adapters/http.js | 2 -- 1 file changed, 2 deletions(-) diff --git a/lib/adapters/http.js b/lib/adapters/http.js index 28d3d2b..dfa6386 100755 --- a/lib/adapters/http.js +++ b/lib/adapters/http.js @@ -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)); });