Skip to content

Commit

Permalink
fix: use undefined
Browse files Browse the repository at this point in the history
  • Loading branch information
Kikobeats committed Oct 20, 2019
1 parent a5c2896 commit ae693e3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ module.exports = ({ tunnel, onError, userAgent, cacheDir }) => {
return async url => {
let data = {}
do {
const agent = retry.val() && getAgent(tunnel)
const agent = retry.val() ? getAgent(tunnel) : undefined
const flags = getFlags({ url, agent, userAgent, cacheDir })
debug(`getInfo retry=${retry.val()} url=${url} flags=${flags.join(' ')}`)
try {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ const createGuestToken = ({ userAgent, tunnel }) => {
let token

do {
const agent = retry.val() && getAgent(tunnel)
const agent = retry.val() ? getAgent(tunnel) : undefined
debug(
`guestToken retry=${retry.val()} agent=${
agent ? proxyUri(agent) : false
Expand Down

0 comments on commit ae693e3

Please sign in to comment.