Skip to content

Commit b0c0625

Browse files
lucacomesjberman
andauthored
Update client/nginx.go
Co-authored-by: Saylor Berman <[email protected]>
1 parent 260fa1a commit b0c0625

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

client/nginx.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -612,7 +612,7 @@ func versionSupported(n int) bool {
612612

613613
// GetMaxAPIVersion returns the maximum API version supported by the server and the client.
614614
func (client *NginxClient) GetMaxAPIVersion() (int, error) {
615-
serverVersion, err := client.getAPIVersions(client.httpClient, client.apiEndpoint)
615+
serverVersions, err := client.getAPIVersions(client.httpClient, client.apiEndpoint)
616616
if err != nil {
617617
return 0, fmt.Errorf("failed to get max API version: %w", err)
618618
}

0 commit comments

Comments
 (0)