Skip to content

Commit cee5974

Browse files
committed
[Squash] Remove now unnecessary error checks
1 parent 94eaae6 commit cee5974

File tree

1 file changed

+0
-22
lines changed

1 file changed

+0
-22
lines changed

test/parallel/test-crypto.js

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -201,28 +201,6 @@ assert.throws(function() {
201201
}
202202
});
203203

204-
assert.throws(function() {
205-
crypto.createSign('SHA1').update('0', 'hex');
206-
}, (err) => {
207-
// Throws TypeError, so there is no opensslErrorStack property.
208-
if ((err instanceof Error) &&
209-
/^TypeError: Bad input string$/.test(err) &&
210-
err.opensslErrorStack === undefined) {
211-
return true;
212-
}
213-
});
214-
215-
assert.throws(function() {
216-
crypto.createVerify('SHA1').update('0', 'hex');
217-
}, (err) => {
218-
// Throws TypeError, so there is no opensslErrorStack property.
219-
if ((err instanceof Error) &&
220-
/^TypeError: Bad input string$/.test(err) &&
221-
err.opensslErrorStack === undefined) {
222-
return true;
223-
}
224-
});
225-
226204
assert.throws(function() {
227205
const priv = [
228206
'-----BEGIN RSA PRIVATE KEY-----',

0 commit comments

Comments
 (0)