Skip to content

Commit

Permalink
Simplify.
Browse files Browse the repository at this point in the history
Co-authored-by: Daniel Lando <daniel.sorridi@gmail.com>
  • Loading branch information
DirtyHairy and robertsLando authored Feb 6, 2025
1 parent 738c1ea commit 6329624
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions src/lib/connect/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -106,12 +106,7 @@ function connect(

if (isBrowser || opts.unixSocket) {
opts.socksProxy = undefined
}

if (
!isBrowser &&
!opts.unixSocket &&
opts.socksProxy === undefined &&
} else if(opts.socksProxy === undefined &&

Check failure on line 109 in src/lib/connect/index.ts

View workflow job for this annotation

GitHub Actions / build (20.x)

Replace `(` with `·(⏎↹↹`
typeof process !== 'undefined'
) {
opts.socksProxy = process.env['MQTTJS_SOCKS_PROXY']
Expand Down

0 comments on commit 6329624

Please sign in to comment.