Skip to content

Commit

Permalink
Minor Refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
jonrgurock committed Oct 31, 2019
1 parent c28fb8d commit 6e9f38d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions dotnet/Gurock/TestRail/APIClient.cs
Expand Up @@ -193,8 +193,7 @@ private object SendRequest(string method, string uri, object data)
// If 'get_attachment' (but not 'get_attachments') returned valid status code, save the file
if ((response != null)
&& ((int)response.StatusCode == 200)
&& (uri.StartsWith("get_attachment"))
&& !(uri.StartsWith("get_attachments")))
&& (uri.StartsWith("get_attachment/")))
{
byte[] buffer = new byte[1024];

Expand Down

0 comments on commit 6e9f38d

Please sign in to comment.