Skip to content

Commit

Permalink
Update client/nginx.go
Browse files Browse the repository at this point in the history
Co-authored-by: Saylor Berman <[email protected]>
  • Loading branch information
lucacome and sjberman authored Aug 9, 2024
1 parent 260fa1a commit b0c0625
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client/nginx.go
Original file line number Diff line number Diff line change
Expand Up @@ -612,7 +612,7 @@ func versionSupported(n int) bool {

// GetMaxAPIVersion returns the maximum API version supported by the server and the client.
func (client *NginxClient) GetMaxAPIVersion() (int, error) {
serverVersion, err := client.getAPIVersions(client.httpClient, client.apiEndpoint)
serverVersions, err := client.getAPIVersions(client.httpClient, client.apiEndpoint)

Check failure on line 615 in client/nginx.go

View workflow job for this annotation

GitHub Actions / Unit Test (1.21)

serverVersions declared and not used

Check failure on line 615 in client/nginx.go

View workflow job for this annotation

GitHub Actions / Unit Test (stable)

serverVersions declared and not used

Check failure on line 615 in client/nginx.go

View workflow job for this annotation

GitHub Actions / Lint

serverVersions declared and not used

Check failure on line 615 in client/nginx.go

View workflow job for this annotation

GitHub Actions / Lint

serverVersions declared and not used
if err != nil {
return 0, fmt.Errorf("failed to get max API version: %w", err)
}
Expand Down

0 comments on commit b0c0625

Please sign in to comment.