Skip to content

Commit dd345d7

Browse files
committed
Refactor
1 parent 3dd9a37 commit dd345d7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/charSet.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,8 +82,8 @@ const _ndxFn = (bitsPerChar) => {
8282
// Otherwise, while slicing off bits per char, we will possibly straddle a couple
8383
// of bytes, so a bit more work is involved
8484
else {
85+
let slicesPerChunk = lcm(bitsPerChar, BITS_PER_BYTE) / BITS_PER_BYTE
8586
return function(chunk, slice, bytes) {
86-
let slicesPerChunk = lcm(bitsPerChar, BITS_PER_BYTE) / BITS_PER_BYTE
8787
let bNum = chunk * slicesPerChunk
8888

8989
let offset = (slice*bitsPerChar)/BITS_PER_BYTE

0 commit comments

Comments
 (0)