Skip to content
This repository was archived by the owner on Feb 4, 2022. It is now read-only.

Commit 60646a7

Browse files
committed
refactor(connection): module => netModule
1 parent eb8e9b4 commit 60646a7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/connection/connection.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -577,9 +577,9 @@ function prepareConnectionOptions(conn, _options) {
577577
}
578578

579579
function makeConnection(conn, options, callback) {
580-
const module = options.ssl ? tls : net;
580+
const netModule = options.ssl ? tls : net;
581581

582-
const connection = module.connect(options, function() {
582+
const connection = netModule.connect(options, function() {
583583
if (conn.ssl) {
584584
// Error on auth or skip
585585
if (connection.authorizationError && conn.rejectUnauthorized) {

0 commit comments

Comments
 (0)