Skip to content

Commit f55a63c

Browse files
JacksonTianFishrock123
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 5ad7e04 commit f55a63c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/internal/util.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -112,15 +112,15 @@ exports.normalizeEncoding = function normalizeEncoding(enc) {
112112
case 'utf-8':
113113
return 'utf8';
114114
case 'ucs2':
115-
case 'utf16le':
116115
case 'ucs-2':
116+
case 'utf16le':
117117
case 'utf-16le':
118118
return 'utf16le';
119+
case 'latin1':
119120
case 'binary':
120121
return 'latin1';
121122
case 'base64':
122123
case 'ascii':
123-
case 'latin1':
124124
case 'hex':
125125
return enc;
126126
default:

0 commit comments

Comments
 (0)