Skip to content

Commit

Permalink
chore: apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Alan Shaw <alan.shaw@protocol.ai>
  • Loading branch information
vasco-santos and Alan Shaw authored Oct 12, 2022
1 parent e2aded9 commit c0578ad
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/edge-gateway/src/env.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,9 @@ function setGatewayRace (env) {
const list = JSON.parse(input)
// Validate is array and has URLs
if (!Array.isArray(list)) {
throw new Error('invalid environment variable')
throw new Error('invalid gateways list environment variable')
}
list.map(gwUrl => new URL(gwUrl))
list.forEach(gwUrl => new URL(gwUrl))
return list
}

Expand Down

0 comments on commit c0578ad

Please sign in to comment.