File tree Expand file tree Collapse file tree 1 file changed +0
-5
lines changed Expand file tree Collapse file tree 1 file changed +0
-5
lines changed Original file line number Diff line number Diff line change @@ -319,7 +319,6 @@ export async function makeSocket(options: MakeConnectionOptions): Promise<Stream
319319 const useTLS = options . tls ?? false ;
320320 const noDelay = options . noDelay ?? true ;
321321 const connectTimeoutMS = options . connectTimeoutMS ?? 30000 ;
322- const rejectUnauthorized = options . rejectUnauthorized ?? true ;
323322 const existingSocket = options . existingSocket ;
324323
325324 let socket : Stream ;
@@ -375,10 +374,6 @@ export async function makeSocket(options: MakeConnectionOptions): Promise<Stream
375374 return socket ;
376375 } catch ( error ) {
377376 socket . destroy ( ) ;
378- if ( 'authorizationError' in socket && socket . authorizationError != null && rejectUnauthorized ) {
379- // TODO(NODE-5192): wrap this with a MongoError subclass
380- throw socket . authorizationError ;
381- }
382377 throw error ;
383378 } finally {
384379 socket . setTimeout ( 0 ) ;
You can’t perform that action at this time.
0 commit comments