summaryrefslogtreecommitdiff
path: root/test/parallel/test-tls-sni-option.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/parallel/test-tls-sni-option.js')
-rw-r--r--test/parallel/test-tls-sni-option.js12
1 files changed, 4 insertions, 8 deletions
diff --git a/test/parallel/test-tls-sni-option.js b/test/parallel/test-tls-sni-option.js
index ad7410b163..f744b6db54 100644
--- a/test/parallel/test-tls-sni-option.js
+++ b/test/parallel/test-tls-sni-option.js
@@ -21,15 +21,11 @@
'use strict';
const common = require('../common');
-if (!process.features.tls_sni) {
- common.skip('node compiled without OpenSSL or with old OpenSSL version.');
- return;
-}
-
-if (!common.hasCrypto) {
+if (!common.hasCrypto)
common.skip('missing crypto');
- return;
-}
+
+if (!process.features.tls_sni)
+ common.skip('node compiled without OpenSSL or with old OpenSSL version.');
const assert = require('assert');
const fs = require('fs');