Skip to content

Commit

Permalink
code revise
Browse files Browse the repository at this point in the history
  • Loading branch information
Qinyuan Wan committed Apr 6, 2016
1 parent d1ff941 commit 9573dee
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ClientRuntimes/NodeJS/ms-rest-azure/lib/azureServiceClient.js
Original file line number Diff line number Diff line change
Expand Up @@ -274,8 +274,8 @@ AzureServiceClient.prototype._updateStateFromLocationHeader = function (pollingS
if (statusCode === 202) {
pollingState.status = LroStates.InProgress;
} else if (statusCode === 200 ||
(initialRequest.response.statusCode === 201 && initialRequest.request.method === 'PUT') ||
(initialRequest.response.statusCode === 204 && initialRequest.request.method === 'DELETE')) {
(statusCode === 201 && pollingState.request.method === 'PUT') ||
(statusCode === 204 && pollingState.request.method === 'DELETE')) {

pollingState.status = LroStates.Succeeded;

Expand Down

0 comments on commit 9573dee

Please sign in to comment.