Skip to content

Commit

Permalink
catch removed
Browse files Browse the repository at this point in the history
  • Loading branch information
owl352 committed Sep 20, 2024
1 parent 5f99550 commit bfc1103
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions packages/api/src/controllers/RateController.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,7 @@ class RateController {
return response.send({ usd: kucoinResponse, source: 'Kucoin' })
}

const coinbaseResponse = await Coinbase.getUSDRate(request).catch((err) => {
console.error(err)
return null
})
const coinbaseResponse = await Coinbase.getUSDRate(request)

if (typeof coinbaseResponse === 'number') {
return response.send({ usd: coinbaseResponse, source: 'Coinbase' })
Expand Down

0 comments on commit bfc1103

Please sign in to comment.