From d36716de1cac60ce06419d9848255dc6c9ec1661 Mon Sep 17 00:00:00 2001 From: Justin Plock Date: Sun, 24 Nov 2019 13:33:57 -0500 Subject: [PATCH] Let error handle rejection --- src/bastion.js | 1 - 1 file changed, 1 deletion(-) diff --git a/src/bastion.js b/src/bastion.js index f339f254..774f7c4c 100644 --- a/src/bastion.js +++ b/src/bastion.js @@ -23,7 +23,6 @@ function getPublicIp() { }); req.once('timeout', () => { req.abort(); - return reject(new Error(`request timed out after ${options.timeout}ms`)); }); req.once('error', reject); });