Skip to content

Commit

Permalink
Remove async promise
Browse files Browse the repository at this point in the history
  • Loading branch information
justinkaseman committed Jan 29, 2021
1 parent 17526f1 commit a33b6cf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion btc.com/src/endpoint/balance.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ const getBalance: balance.GetBalance<ImplConfig> = async (account, config) => {
testnet: account.chain === 'testnet',
})

const response: any = await new Promise(async (resolve, reject) =>
const response: any = await new Promise((resolve, reject) =>
client.address(account.address, (error: any, address: any) =>
error ? reject(error) : resolve(address),
),
Expand Down

0 comments on commit a33b6cf

Please sign in to comment.