Skip to content

Commit

Permalink
fix linter complaint
Browse files Browse the repository at this point in the history
  • Loading branch information
sfc-gh-dszmolka committed Jan 12, 2025
1 parent 0962923 commit 517efb1
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions util.go
Original file line number Diff line number Diff line change
Expand Up @@ -354,12 +354,11 @@ func getTransport(cfg *Config) *http.Transport {
if cfg == nil {
logger.Debug("getTransport: got nil Config, will perform OCSP validation for cloud storage")
return SnowflakeTransport
} else {
if cfg.DisableOCSPChecks || cfg.InsecureMode {
logger.Debug("getTransport: skipping OCSP validation for cloud storage")
return snowflakeInsecureTransport
}
logger.Debug("getTransport: will perform OCSP validation for cloud storage")
return SnowflakeTransport
}
if cfg.DisableOCSPChecks || cfg.InsecureMode {
logger.Debug("getTransport: skipping OCSP validation for cloud storage")
return snowflakeInsecureTransport
}
logger.Debug("getTransport: will perform OCSP validation for cloud storage")
return SnowflakeTransport
}

0 comments on commit 517efb1

Please sign in to comment.