summaryrefslogtreecommitdiff
path: root/test/parallel/test-tls-alert-handling.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/parallel/test-tls-alert-handling.js')
-rw-r--r--test/parallel/test-tls-alert-handling.js12
1 files changed, 4 insertions, 8 deletions
diff --git a/test/parallel/test-tls-alert-handling.js b/test/parallel/test-tls-alert-handling.js
index d089ad223b..0b3447243d 100644
--- a/test/parallel/test-tls-alert-handling.js
+++ b/test/parallel/test-tls-alert-handling.js
@@ -1,15 +1,11 @@
'use strict';
const common = require('../common');
-if (!common.opensslCli) {
- common.skip('node compiled without OpenSSL CLI.');
- return;
-}
-
-if (!common.hasCrypto) {
+if (!common.hasCrypto)
common.skip('missing crypto');
- return;
-}
+
+if (!common.opensslCli)
+ common.skip('node compiled without OpenSSL CLI.');
const fs = require('fs');
const net = require('net');