diff options
author | cjihrig <cjihrig@gmail.com> | 2018-11-04 10:25:02 -0500 |
---|---|---|
committer | cjihrig <cjihrig@gmail.com> | 2018-11-06 10:59:18 -0500 |
commit | a74b4a062fd6cf8ba5fb0a17078f855b072841cd (patch) | |
tree | 0e82ccc547e2bcfc366bca14a757a7b37d533e11 /test/parallel/test-crypto-cipher-decipher.js | |
parent | a7ba5faaf52b3794b1ade619b7f2b9c77517dbd3 (diff) | |
download | android-node-v8-a74b4a062fd6cf8ba5fb0a17078f855b072841cd.tar.gz android-node-v8-a74b4a062fd6cf8ba5fb0a17078f855b072841cd.tar.bz2 android-node-v8-a74b4a062fd6cf8ba5fb0a17078f855b072841cd.zip |
test: remove unused catch bindings
PR-URL: https://github.com/nodejs/node/pull/24079
Reviewed-By: Sam Roberts <vieuxtech@gmail.com>
Reviewed-By: Wyatt Preul <wpreul@gmail.com>
Diffstat (limited to 'test/parallel/test-crypto-cipher-decipher.js')
-rw-r--r-- | test/parallel/test-crypto-cipher-decipher.js | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/test/parallel/test-crypto-cipher-decipher.js b/test/parallel/test-crypto-cipher-decipher.js index 3c0658762f..ed387c3c99 100644 --- a/test/parallel/test-crypto-cipher-decipher.js +++ b/test/parallel/test-crypto-cipher-decipher.js @@ -168,13 +168,13 @@ testCipher2(Buffer.from('0123456789abcdef')); // not assert. See https://github.com/nodejs/node-v0.x-archive/issues/4886. { const c = crypto.createCipher('aes-256-cbc', 'secret'); - try { c.final('xxx'); } catch (e) { /* Ignore. */ } - try { c.final('xxx'); } catch (e) { /* Ignore. */ } - try { c.final('xxx'); } catch (e) { /* Ignore. */ } + try { c.final('xxx'); } catch { /* Ignore. */ } + try { c.final('xxx'); } catch { /* Ignore. */ } + try { c.final('xxx'); } catch { /* Ignore. */ } const d = crypto.createDecipher('aes-256-cbc', 'secret'); - try { d.final('xxx'); } catch (e) { /* Ignore. */ } - try { d.final('xxx'); } catch (e) { /* Ignore. */ } - try { d.final('xxx'); } catch (e) { /* Ignore. */ } + try { d.final('xxx'); } catch { /* Ignore. */ } + try { d.final('xxx'); } catch { /* Ignore. */ } + try { d.final('xxx'); } catch { /* Ignore. */ } } // Regression test for https://github.com/nodejs/node-v0.x-archive/issues/5482: |