Skip to content

Commit

Permalink
internal/util: move the case 'latin1'
Browse files Browse the repository at this point in the history
make the `case 'latin1':` near by `case 'binary':`.
  • Loading branch information
JacksonTian committed Nov 17, 2016
1 parent 367065b commit 7abf5eb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/internal/util.js
Original file line number Diff line number Diff line change
Expand Up @@ -112,15 +112,15 @@ exports.normalizeEncoding = function normalizeEncoding(enc) {
case 'utf-8':
return 'utf8';
case 'ucs2':
case 'utf16le':
case 'ucs-2':
case 'utf16le':
case 'utf-16le':
return 'utf16le';
case 'latin1':
case 'binary':
return 'latin1';
case 'base64':
case 'ascii':
case 'latin1':
case 'hex':
return enc;
default:
Expand Down

0 comments on commit 7abf5eb

Please sign in to comment.