From 939f0e974a07fdb6038d468dd9bae8ca039088a3 Mon Sep 17 00:00:00 2001 From: tombuildsstuff Date: Tue, 28 Feb 2023 14:25:43 +0100 Subject: [PATCH] docs --- sdk/client/resourcemanager/poller.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sdk/client/resourcemanager/poller.go b/sdk/client/resourcemanager/poller.go index adf3404ba1d..064d945f873 100644 --- a/sdk/client/resourcemanager/poller.go +++ b/sdk/client/resourcemanager/poller.go @@ -46,7 +46,7 @@ func PollerFromResponse(response *client.Response, client *Client) (poller polle return pollers.NewPoller(provisioningState, provisioningState.initialRetryDuration, pollers.DefaultNumberOfDroppedConnectionsToAllow), nil } - // finally, if it was a Delete that returned a 204 + // finally, if it was a Delete that returned a 200/204 methodIsDelete := strings.EqualFold(response.Request.Method, "DELETE") statusCodesToCheckDelete := response.StatusCode == http.StatusOK || response.StatusCode == http.StatusNoContent if methodIsDelete && statusCodesToCheckDelete {