Skip to content

Commit

Permalink
Disable eslint to not expect async/await in fetch.then
Browse files Browse the repository at this point in the history
  • Loading branch information
alvarengathomas committed Jan 2, 2025
1 parent 91f7bce commit b6c80d1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/presentation/cli/CollectMetrics.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ const execute = async (): Promise<void> => {
client.getBlockNumber(),
fetch(
`${blockExplorerUrl}/api/v2/stats`)
.then(async response => await response.json())
// eslint-disable-next-line @typescript-eslint/promise-function-async
.then(response => response.json())
])

const totalTransactions = parseInt(stats.total_transactions)
Expand Down

0 comments on commit b6c80d1

Please sign in to comment.