Skip to content
This repository has been archived by the owner on Dec 20, 2023. It is now read-only.

Commit

Permalink
Let error handle rejection
Browse files Browse the repository at this point in the history
  • Loading branch information
jplock committed Nov 24, 2019
1 parent 35694c6 commit d36716d
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/bastion.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
});
Expand Down

0 comments on commit d36716d

Please sign in to comment.