Skip to content

Commit

Permalink
fix(hapi): variable use before define
Browse files Browse the repository at this point in the history
  • Loading branch information
Torresmorah committed Jan 30, 2023
1 parent b89f446 commit 2915ed4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hapi/src/services/eosio.service.js
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ const getBPJsonUrl = (producerUrl, chainUrl) => {

const getBPJson = async bpJsonUrl => {
const { data: _bpJson } = await axiosUtil.instance.get(bpJsonUrl)
const bpJson = !!_bpJson && typeof _bpJson === 'object' ? _bpJson : bpJson
const bpJson = !!_bpJson && typeof _bpJson === 'object' ? _bpJson : {}

return bpJson
}
Expand Down

0 comments on commit 2915ed4

Please sign in to comment.