Skip to content

Commit dc4b38a

Browse files
committed
refactor: rename a variable for consistency
1 parent 94c7333 commit dc4b38a

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

fallback/single-byte.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,14 @@ export const assertEncoding = (encoding) => {
1111
throw new RangeError('Unsupported encoding')
1212
}
1313

14-
const f = 0xff_fd
14+
const r = 0xff_fd
1515

1616
function getEncoding(encoding) {
1717
assertEncoding(encoding)
1818
if (encoding === xUserDefined) return Array.from({ length: 128 }, (_, i) => 0xf7_80 + i)
1919
if (encoding === iso8i) encoding = 'iso-8859-8'
2020
let prev = 127
21-
return encodings[encoding].map((x) => (x === f ? x : (prev += x))) // eslint-disable-line no-return-assign
21+
return encodings[encoding].map((x) => (x === r ? x : (prev += x))) // eslint-disable-line no-return-assign
2222
}
2323

2424
const mappers = new Map()

0 commit comments

Comments
 (0)