Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions cmd/sonarExecuteScan.go
Original file line number Diff line number Diff line change
Expand Up @@ -98,12 +98,12 @@ func sonarExecuteScan(config sonarExecuteScanOptions, _ *telemetry.CustomData, i
javaToolOptions := fmt.Sprintf("-Dhttp.proxyHost=%v -Dhttp.proxyPort=%v", host, port)
os.Setenv("JAVA_TOOL_OPTIONS", javaToolOptions)

apiClient.SetOptions(piperhttp.ClientOptions{TransportProxy: transportProxy, TransportSkipVerification: true})
//apiClient.SetOptions(piperhttp.ClientOptions{TransportProxy: transportProxy, TransportSkipVerification: true})

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can we just remove the unused code ?

log.Entry().Infof("HTTP client instructed to use %v proxy", proxy)

} else {
//TODO: implement certificate handling
apiClient.SetOptions(piperhttp.ClientOptions{TransportSkipVerification: true})
//apiClient.SetOptions(piperhttp.ClientOptions{TransportSkipVerification: true})

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We can remove the else block?

}

sonar = sonarSettings{
Expand Down
Loading