Skip to content

Commit

Permalink
Remove unnecessary nil check which was confusing linter
Browse files Browse the repository at this point in the history
  • Loading branch information
imjasonh committed Jan 20, 2022
1 parent 3f08a73 commit 9605a47
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/cosign/cli/options/registry.go
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ func (o *RegistryOptions) GetRegistryClientOpts(ctx context.Context) []remote.Op
opts = append(opts, remote.WithAuthFromKeychain(authn.DefaultKeychain))
}

if o != nil && o.AllowInsecure {
if o.AllowInsecure {
opts = append(opts, remote.WithTransport(&http.Transport{TLSClientConfig: &tls.Config{InsecureSkipVerify: true}})) // #nosec G402
}
return opts
Expand Down

0 comments on commit 9605a47

Please sign in to comment.