Skip to content

Commit f3a5352

Browse files
committed
fix: address lint issues
1 parent 02f751c commit f3a5352

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

src/index.ts

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -296,11 +296,15 @@ export const parsePriceData = (data: Buffer, currentSlot?: number): PriceData =>
296296
// configurable max latency in slots between send and receive
297297
const maxLatency = data.readUInt8(106)
298298
// Various flags (used for operations)
299-
const flag_bits = data.readInt8(107)
299+
const flagBits = data.readInt8(107)
300+
301+
/* tslint:disable:no-bitwise */
300302
const flags = {
301-
accumulatorV2: (flag_bits & (1<<0)) !== 0,
302-
messageBufferCleared: (flag_bits & (1<<1)) !== 0,
303+
accumulatorV2: (flagBits & (1<<0)) !== 0,
304+
messageBufferCleared: (flagBits & (1<<1)) !== 0,
303305
}
306+
/* tslint:enable:no-bitwise */
307+
304308
// Globally immutable unique price feed index used for publishing.
305309
const feedIndex = data.readInt32LE(108)
306310
// product id / reference account

0 commit comments

Comments
 (0)