Skip to content

Commit

Permalink
trying to fix linting
Browse files Browse the repository at this point in the history
  • Loading branch information
prajwalpatil25 committed Feb 15, 2024
2 parents 14b1c64 + abbef3c commit 098598e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .golangci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,8 @@ linters:
- govet
# Drop-in replacement of golint.
- revive

linters-settings:
gosec:
excludes:
- G402 # Look for bad TLS connection settings
4 changes: 2 additions & 2 deletions api/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -142,11 +142,11 @@ func New(apiURL string, username string,
}

var client *http.Client
if insecure { // #nosec G402
if insecure {
client = &http.Client{
Transport: &http.Transport{
TLSClientConfig: &tls.Config{
InsecureSkipVerify: insecure,
InsecureSkipVerify: insecure, // #nosec G402
},
},
}
Expand Down

0 comments on commit 098598e

Please sign in to comment.