Skip to content

Commit 12fe071

Browse files
JacksonTianMylesBorins
authored andcommitted
internal/util: move the case 'latin1'
make the `case 'latin1':` near by `case 'binary':`. PR-URL: #9646 Reviewed-By: James M Snell <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Roman Reiss <[email protected]> Reviewed-By: Michaël Zasso <[email protected]>
1 parent 86efc93 commit 12fe071

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/internal/util.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -147,15 +147,15 @@ exports.normalizeEncoding = function normalizeEncoding(enc) {
147147
case 'utf-8':
148148
return 'utf8';
149149
case 'ucs2':
150-
case 'utf16le':
151150
case 'ucs-2':
151+
case 'utf16le':
152152
case 'utf-16le':
153153
return 'utf16le';
154+
case 'latin1':
154155
case 'binary':
155156
return 'latin1';
156157
case 'base64':
157158
case 'ascii':
158-
case 'latin1':
159159
case 'hex':
160160
return enc;
161161
default:

0 commit comments

Comments
 (0)