summaryrefslogtreecommitdiff
path: root/test/parallel/test-crypto-hash.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/parallel/test-crypto-hash.js')
-rw-r--r--test/parallel/test-crypto-hash.js8
1 files changed, 3 insertions, 5 deletions
diff --git a/test/parallel/test-crypto-hash.js b/test/parallel/test-crypto-hash.js
index 28f0f2f303..f76e4f98c8 100644
--- a/test/parallel/test-crypto-hash.js
+++ b/test/parallel/test-crypto-hash.js
@@ -1,13 +1,11 @@
'use strict';
const common = require('../common');
+if (!common.hasCrypto)
+ common.skip('missing crypto');
+
const assert = require('assert');
const fs = require('fs');
const path = require('path');
-
-if (!common.hasCrypto) {
- common.skip('missing crypto');
- return;
-}
const crypto = require('crypto');
// Test hashing