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

Commit

Permalink
refactor(connection): module => netModule
Browse files Browse the repository at this point in the history
  • Loading branch information
mbroadst committed Sep 4, 2018
1 parent eb8e9b4 commit 60646a7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/connection/connection.js
Original file line number Diff line number Diff line change
Expand Up @@ -577,9 +577,9 @@ function prepareConnectionOptions(conn, _options) {
}

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

const connection = module.connect(options, function() {
const connection = netModule.connect(options, function() {
if (conn.ssl) {
// Error on auth or skip
if (connection.authorizationError && conn.rejectUnauthorized) {
Expand Down

0 comments on commit 60646a7

Please sign in to comment.