summaryrefslogtreecommitdiff
path: root/test/common/index.js
diff options
context:
space:
mode:
authorcjihrig <cjihrig@gmail.com>2018-11-04 10:25:02 -0500
committercjihrig <cjihrig@gmail.com>2018-11-06 10:59:18 -0500
commita74b4a062fd6cf8ba5fb0a17078f855b072841cd (patch)
tree0e82ccc547e2bcfc366bca14a757a7b37d533e11 /test/common/index.js
parenta7ba5faaf52b3794b1ade619b7f2b9c77517dbd3 (diff)
downloadandroid-node-v8-a74b4a062fd6cf8ba5fb0a17078f855b072841cd.tar.gz
android-node-v8-a74b4a062fd6cf8ba5fb0a17078f855b072841cd.tar.bz2
android-node-v8-a74b4a062fd6cf8ba5fb0a17078f855b072841cd.zip
test: remove unused catch bindings
PR-URL: https://github.com/nodejs/node/pull/24079 Reviewed-By: Sam Roberts <vieuxtech@gmail.com> Reviewed-By: Wyatt Preul <wpreul@gmail.com>
Diffstat (limited to 'test/common/index.js')
-rw-r--r--test/common/index.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/common/index.js b/test/common/index.js
index 768570437a..da5027af13 100644
--- a/test/common/index.js
+++ b/test/common/index.js
@@ -372,7 +372,7 @@ function canCreateSymLink() {
try {
const output = execSync(`${whoamiPath} /priv`, { timout: 1000 });
return output.includes('SeCreateSymbolicLinkPrivilege');
- } catch (e) {
+ } catch {
return false;
}
}
@@ -456,7 +456,7 @@ function isAlive(pid) {
try {
process.kill(pid, 'SIGCONT');
return true;
- } catch (e) {
+ } catch {
return false;
}
}
@@ -665,7 +665,7 @@ function getTTYfd() {
if (ttyFd === undefined) {
try {
return fs.openSync('/dev/tty');
- } catch (e) {
+ } catch {
// There aren't any tty fd's available to use.
return -1;
}
@@ -679,7 +679,7 @@ function runWithInvalidFD(func) {
// be an valid one.
try {
while (fs.fstatSync(fd--) && fd > 0);
- } catch (e) {
+ } catch {
return func(fd);
}