diff --git a/README.md b/README.md index a086fc7fcf6636..01fea35069a42e 100644 --- a/README.md +++ b/README.md @@ -446,8 +446,6 @@ For information about the governance of the Node.js project, see **Rich Trott** <> (he/him) * [vdeturckheim](https://github.com/vdeturckheim) - **Vladimir de Turckheim** <> (he/him) -* [vitpavlenko](https://github.com/vitpavlenko) - - **Vitaliy Pavlenko** <> (he/him) * [VoltrexKeyva](https://github.com/VoltrexKeyva) - **Mohammed Keyvanzadeh** <> (he/him) * [watilde](https://github.com/watilde) - diff --git a/lib/internal/crypto/cipher.js b/lib/internal/crypto/cipher.js index 1ffd4c10e27f4e..5c87a2f8ccc8cb 100644 --- a/lib/internal/crypto/cipher.js +++ b/lib/internal/crypto/cipher.js @@ -114,7 +114,7 @@ const validateInputEncoding = (encoding) => { function getDecoder(decoder, encoding) { const normilizedEncoding = normalizeAndValidateEncoding(encoding); - decoder = decoder || new StringDecoder(normilizedEncoding); + decoder ||= new StringDecoder(normilizedEncoding); assert(decoder.encoding === normilizedEncoding, 'Cannot change encoding'); return decoder; }