Skip to content

Commit

Permalink
apply PR comment
Browse files Browse the repository at this point in the history
  • Loading branch information
vitpavlenko committed Dec 28, 2022
1 parent d1c165e commit 9bbecff
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 0 additions & 2 deletions README.md
Expand Up @@ -446,8 +446,6 @@ For information about the governance of the Node.js project, see
**Rich Trott** <<rtrott@gmail.com>> (he/him)
* [vdeturckheim](https://github.com/vdeturckheim) -
**Vladimir de Turckheim** <<vlad2t@hotmail.com>> (he/him)
* [vitpavlenko](https://github.com/vitpavlenko) -
**Vitaliy Pavlenko** <<vitaliypavlenko01@gmail.com>> (he/him)
* [VoltrexKeyva](https://github.com/VoltrexKeyva) -
**Mohammed Keyvanzadeh** <<mohammadkeyvanzade94@gmail.com>> (he/him)
* [watilde](https://github.com/watilde) -
Expand Down
2 changes: 1 addition & 1 deletion lib/internal/crypto/cipher.js
Expand Up @@ -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;
}
Expand Down

0 comments on commit 9bbecff

Please sign in to comment.