Skip to content

Commit

Permalink
SNOW-1631790-Transport-Layer: Proxy redundant calls to getter eliminated
Browse files Browse the repository at this point in the history
  • Loading branch information
sfc-gh-fpawlowski authored and sfc-gh-pmotacki committed Dec 5, 2024
1 parent eb9c007 commit 3271d0a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/connection/connection_config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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';
}
Expand Down

0 comments on commit 3271d0a

Please sign in to comment.