diff --git a/services/healthcareapis/mgmt/2019-09-16/healthcareapis/CHANGELOG.md b/services/healthcareapis/mgmt/2019-09-16/healthcareapis/CHANGELOG.md deleted file mode 100644 index e6ce8d23fee3..000000000000 --- a/services/healthcareapis/mgmt/2019-09-16/healthcareapis/CHANGELOG.md +++ /dev/null @@ -1,8 +0,0 @@ -Generated from https://github.com/Azure/azure-rest-api-specs/tree/3c764635e7d442b3e74caf593029fcd440b3ef82 - -Code generator @microsoft.azure/autorest.go@~2.1.161 - -## Breaking Changes - -- Function `NewServicesDescriptionListResultPage` parameter(s) have been changed from `(func(context.Context, ServicesDescriptionListResult) (ServicesDescriptionListResult, error))` to `(ServicesDescriptionListResult, func(context.Context, ServicesDescriptionListResult) (ServicesDescriptionListResult, error))` -- Function `NewOperationListResultPage` parameter(s) have been changed from `(func(context.Context, OperationListResult) (OperationListResult, error))` to `(OperationListResult, func(context.Context, OperationListResult) (OperationListResult, error))` diff --git a/services/healthcareapis/mgmt/2019-09-16/healthcareapis/operations.go b/services/healthcareapis/mgmt/2019-09-16/healthcareapis/operations.go index 27c36689dd06..46230641a058 100644 --- a/services/healthcareapis/mgmt/2019-09-16/healthcareapis/operations.go +++ b/services/healthcareapis/mgmt/2019-09-16/healthcareapis/operations.go @@ -74,6 +74,7 @@ func (client OperationsClient) List(ctx context.Context) (result OperationListRe } if result.olr.hasNextLink() && result.olr.IsEmpty() { err = result.NextWithContext(ctx) + return } return @@ -129,7 +130,6 @@ func (client OperationsClient) listNextResults(ctx context.Context, lastResults result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "healthcareapis.OperationsClient", "listNextResults", resp, "Failure responding to next results request") - return } return } diff --git a/services/healthcareapis/mgmt/2019-09-16/healthcareapis/services.go b/services/healthcareapis/mgmt/2019-09-16/healthcareapis/services.go index 040fd983de15..619b761e1352 100644 --- a/services/healthcareapis/mgmt/2019-09-16/healthcareapis/services.go +++ b/services/healthcareapis/mgmt/2019-09-16/healthcareapis/services.go @@ -434,6 +434,7 @@ func (client ServicesClient) List(ctx context.Context) (result ServicesDescripti } if result.sdlr.hasNextLink() && result.sdlr.IsEmpty() { err = result.NextWithContext(ctx) + return } return @@ -493,7 +494,6 @@ func (client ServicesClient) listNextResults(ctx context.Context, lastResults Se result, err = client.ListResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "healthcareapis.ServicesClient", "listNextResults", resp, "Failure responding to next results request") - return } return } @@ -557,6 +557,7 @@ func (client ServicesClient) ListByResourceGroup(ctx context.Context, resourceGr } if result.sdlr.hasNextLink() && result.sdlr.IsEmpty() { err = result.NextWithContext(ctx) + return } return @@ -617,7 +618,6 @@ func (client ServicesClient) listByResourceGroupNextResults(ctx context.Context, result, err = client.ListByResourceGroupResponder(resp) if err != nil { err = autorest.NewErrorWithError(err, "healthcareapis.ServicesClient", "listByResourceGroupNextResults", resp, "Failure responding to next results request") - return } return }