From 32074d6b866e304f6923abb5e6fa853eebcdd375 Mon Sep 17 00:00:00 2001 From: Marc Bachmann Date: Wed, 12 Apr 2023 11:47:17 +0200 Subject: [PATCH] Migrate optional chaining operator to satisfy eslint The migration to newer syntax should happen in a separate PR. --- src/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/index.js b/src/index.js index e5b9f22..0d4bfd1 100644 --- a/src/index.js +++ b/src/index.js @@ -161,7 +161,7 @@ VERBS.concat("any").forEach(function (method) { "timeout of " + config.timeout + "ms exceeded", config, undefined, - config.transitional?.clarifyTimeoutError + config.transitional && config.transitional.clarifyTimeoutError ? "ETIMEDOUT" : "ECONNABORTED" ); @@ -176,7 +176,7 @@ VERBS.concat("any").forEach(function (method) { "timeout of " + config.timeout + "ms exceeded", config, undefined, - config.transitional?.clarifyTimeoutError + config.transitional && config.transitional.clarifyTimeoutError ? "ETIMEDOUT" : "ECONNABORTED" );