Skip to content

Commit 3479a9e

Browse files
committed
Eslint fix
1 parent e3f4366 commit 3479a9e

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

lib/flex-int.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
const assert = require(__dirname + '/assert.js')
22

3-
const possibleValueCount = bytes => {
3+
function possibleValueCount(bytes) {
44
const usableBits = 7 * bytes
55
return Math.pow(2, usableBits)
66
}
@@ -22,7 +22,7 @@ const BYTE_MASKS = new Map
2222
{
2323
let mask = 0
2424
let bitToMaskNext = 7 //0 is least significant bit, 7 is most significant bit
25-
for (const [bytes, _] of UPPER_BOUNDS) {
25+
for (const [bytes, _] of UPPER_BOUNDS) { //eslint-disable-line no-unused-vars
2626
if (!bytes) continue //should never be writing with 0 bytes
2727

2828
BYTE_MASKS.set(bytes, mask)

test/value-bytes/flex-unsigned-int.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*eslint-disable no-undef*/
22
const type = new t.FlexUnsignedIntType
33
const TWO_7 = Math.pow(2, 7),
4-
TWO_14 = Math.pow(2, 14)
4+
TWO_14 = Math.pow(2, 14)
55
for (let value = 0; value < TWO_7; value++) {
66
const valueBuffer = type.valueBuffer(value)
77
assert.equal(valueBuffer, bufferFrom([value]))

0 commit comments

Comments
 (0)