Skip to content

Commit 726bb7e

Browse files
committed
keypair_auth: remove ineffective err != nil
golangci-lint had been showing this warning for a while... The actual warning is "impossible condition: nil != nil" from gopls' nilness linter.
1 parent f326423 commit 726bb7e

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

pkg/client/client_venafi_cloud.go

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -288,9 +288,6 @@ func (c *VenafiCloudClient) updateAccessToken() error {
288288
values.Set("assertion", jwtToken)
289289

290290
tokenURL := fullURL(c.baseURL, accessTokenEndpoint)
291-
if err != nil {
292-
return err
293-
}
294291

295292
encoded := values.Encode()
296293
request, err := http.NewRequest(http.MethodPost, tokenURL, strings.NewReader(encoded))

0 commit comments

Comments
 (0)