From 3271d0a6dbdb97831591d3799ccd1ef22c529050 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Filip=20Paw=C5=82owski?= Date: Fri, 22 Nov 2024 15:02:53 +0100 Subject: [PATCH] SNOW-1631790-Transport-Layer: Proxy redundant calls to getter eliminated --- lib/connection/connection_config.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/connection/connection_config.js b/lib/connection/connection_config.js index 3d1736f2b..3b0f7aef4 100644 --- a/lib/connection/connection_config.js +++ b/lib/connection/connection_config.js @@ -855,9 +855,9 @@ function ConnectionConfig(options, validateCredentials, qaMode, clientInfo) { this.describeProxy = function () { const proxy = this.getProxy(); if (Util.exists(proxy)) { - return `proxyHost: ${this.getProxy().host}, proxyPort: ${this.getProxy().port}, proxyUser: ${this.getProxy().user}, ` - + `proxyPassword is ${LoggingUtil.describePresence(this.getProxy().password)}, ` - + `proxyProtocol: ${this.getProxy().protocol}, noProxy: ${this.getProxy().noProxy}`; + return `proxyHost: ${proxy.host}, proxyPort: ${proxy.port}, proxyUser: ${proxy.user}, ` + + `proxyPassword is ${LoggingUtil.describePresence(proxy.password)}, ` + + `proxyProtocol: ${proxy.protocol}, noProxy: ${proxy.noProxy}`; } else { return 'proxy was not configured'; }