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

Commit

Permalink
👕 Fix lint error
Browse files Browse the repository at this point in the history
  • Loading branch information
sameersubudhi committed Nov 22, 2023
1 parent 5347cf4 commit 539fd02
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
4 changes: 3 additions & 1 deletion framework/src/waitForIt.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,9 @@ const Logger = require('./logger').get;

const logger = Logger();

const waitForIt = (fn, intervalMs = 1000, resolveUndefined = false) => new Promise(resolve => {
const waitForIt = (fn, intervalMs = 1000, resolveUndefined = false) =>
// eslint-disable-next-line implicit-arrow-linebreak
new Promise(resolve => {
// eslint-disable-next-line consistent-return
const timeout = setInterval(async () => {
try {
Expand Down
4 changes: 2 additions & 2 deletions services/blockchain-connector/shared/sdk/cache.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,8 @@ const cacheBlocksFromWaitlist = async () => {
);
await blocksCache.upsert({ id: block.header.id, timestamp: block.header.timestamp, block });
} catch (err) {
logger.info(
`Caching block ID ${block.header.id} (height: ${block.header.height}) failed due to: ${err.message}. Will re-attempt caching.`,
logger.warn(
`Caching block ${block.header.id} (height: ${block.header.height}) failed. Will re-attempt. Error:\n${err.message}.`,
);
logger.debug(err.stack);
blockCacheWaitlist.splice(0, 0, block);
Expand Down
1 change: 1 addition & 0 deletions services/gateway/tests/unit/shared/apiUtils.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ describe('Test API utilities', () => {
});

it('should return string when called to convert array to string', async () => {
// eslint-disable-next-line no-array-constructor
const response = convertType(new Array(...[1, 2, 3]), 'string');
expect(typeof response).toEqual('string');
expect(response).toEqual('1,2,3');
Expand Down

0 comments on commit 539fd02

Please sign in to comment.