Skip to content

Commit 9cb2bfe

Browse files
authored
Update ParseCommandRunner.cs
1 parent edaf3b5 commit 9cb2bfe

File tree

1 file changed

+2
-14
lines changed

1 file changed

+2
-14
lines changed

Parse/Infrastructure/Execution/ParseCommandRunner.cs

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -73,20 +73,8 @@ public async Task<Tuple<HttpStatusCode, IDictionary<string, object>>> RunCommand
7373
var statusCode = response.Item1;
7474
var content = response.Item2;
7575
var responseCode = (int) statusCode;
76-
77-
78-
if (responseCode == 200) //action successfully done
79-
{
80-
81-
}
82-
else if (responseCode == 201)
83-
{
84-
}
85-
else if(responseCode == 400) // Bad Request
86-
{
87-
//throw new ParseFailureException(ParseFailureException.ErrorCode., content);
88-
}
89-
else if (responseCode == 404)
76+
77+
if (responseCode == 404)
9078
{
9179
throw new ParseFailureException(ParseFailureException.ErrorCode.ERROR404, "Error 404");
9280
}

0 commit comments

Comments
 (0)