diff --git a/lib/util/http/github.ts b/lib/util/http/github.ts index bdfd2f6f72507eff245174f27513ff7591257657..7674405713878cc29ec22a735ad8c02decca5f74 100644 --- a/lib/util/http/github.ts +++ b/lib/util/http/github.ts @@ -55,11 +55,10 @@ function handleGotError( message = String(err.response.body.message); } if ( - err.name === 'RequestError' && - (err.code === 'ENOTFOUND' || - err.code === 'ETIMEDOUT' || - err.code === 'EAI_AGAIN' || - err.code === 'ECONNRESET') + err.code === 'ENOTFOUND' || + err.code === 'ETIMEDOUT' || + err.code === 'EAI_AGAIN' || + err.code === 'ECONNRESET' ) { logger.debug({ err }, 'GitHub failure: RequestError'); throw new ExternalHostError(err, PlatformId.Github);