Skip to content
This repository has been archived by the owner on Jun 11, 2024. It is now read-only.

Commit

Permalink
Fix eslint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
ishantiw committed May 7, 2020
1 parent eaddc40 commit a109aff
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion elements/lisk-chain/test/utils/block.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ export const getBytes = (block: BlockInstance): Buffer => {
LITTLE_ENDIAN,
);

const previousBlockBuffer = block.previousBlockId ? Buffer.from(block.previousBlockId, 'hex'): Buffer.alloc(32);
const previousBlockBuffer = block.previousBlockId ? Buffer.from(block.previousBlockId, 'hex') : Buffer.alloc(32);

const heightBuffer = intToBuffer(block.height, SIZE_INT32, LITTLE_ENDIAN);

Expand Down
2 changes: 1 addition & 1 deletion elements/lisk-transactions/src/utils/get_block_bytes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export const getBlockBytes = (block: BlockHeaderJSON): Buffer => {
LITTLE_ENDIAN,
);

const previousBlockBuffer = block.previousBlockId ? Buffer.from(block.previousBlockId, 'hex'): Buffer.alloc(32);
const previousBlockBuffer = block.previousBlockId ? Buffer.from(block.previousBlockId, 'hex') : Buffer.alloc(32);

const seedRevealBuffer = Buffer.from(block.seedReveal, 'hex');

Expand Down
2 changes: 1 addition & 1 deletion framework/src/application/node/block_processor_v2.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ const getBytes = block => {
LITTLE_ENDIAN,
);

const previousBlockBuffer = block.previousBlockId ? Buffer.from(block.previousBlockId, 'hex'): Buffer.alloc(32);
const previousBlockBuffer = block.previousBlockId ? Buffer.from(block.previousBlockId, 'hex') : Buffer.alloc(32);

const seedRevealBuffer = Buffer.from(block.seedReveal, 'hex');

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ const getBytes = block => {
LITTLE_ENDIAN,
);

const previousBlockBuffer = block.previousBlockId ? Buffer.from(block.previousBlockId, 'hex'): Buffer.alloc(32);
const previousBlockBuffer = block.previousBlockId ? Buffer.from(block.previousBlockId, 'hex') : Buffer.alloc(32);

const seedRevealBuffer = Buffer.from(block.seedReveal, 'hex');

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ const getBytes = block => {
LITTLE_ENDIAN,
);

const previousBlockBuffer = block.previousBlockId ? Buffer.from(block.previousBlockId, 'hex'): Buffer.alloc(32);
const previousBlockBuffer = block.previousBlockId ? Buffer.from(block.previousBlockId, 'hex') : Buffer.alloc(32);

const seedRevealBuffer = Buffer.from(block.seedReveal, 'hex');

Expand Down
2 changes: 1 addition & 1 deletion protocol-specs/utils/blocks/block.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ const getBytes = block => {
LITTLE_ENDIAN,
);

const previousBlockBuffer = block.previousBlockId ? Buffer.from(block.previousBlockId, 'hex'): Buffer.alloc(32);
const previousBlockBuffer = block.previousBlockId ? Buffer.from(block.previousBlockId, 'hex') : Buffer.alloc(32);

const numTransactionsBuffer = intToBuffer(
block.numberOfTransactions,
Expand Down

0 comments on commit a109aff

Please sign in to comment.