summaryrefslogtreecommitdiff
path: root/test/parallel/test-crypto-certificate.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/parallel/test-crypto-certificate.js')
-rw-r--r--test/parallel/test-crypto-certificate.js8
1 files changed, 3 insertions, 5 deletions
diff --git a/test/parallel/test-crypto-certificate.js b/test/parallel/test-crypto-certificate.js
index 831fed0f14..61d8ea8193 100644
--- a/test/parallel/test-crypto-certificate.js
+++ b/test/parallel/test-crypto-certificate.js
@@ -21,12 +21,10 @@
'use strict';
const common = require('../common');
-const assert = require('assert');
-
-if (!common.hasCrypto) {
+if (!common.hasCrypto)
common.skip('missing crypto');
- return;
-}
+
+const assert = require('assert');
const crypto = require('crypto');
crypto.DEFAULT_ENCODING = 'buffer';