Skip to content
Browse files

Fixed ConvoService::CreateConvo not returning in case of a failure.

  • Loading branch information...
GlitchedPolygons committed Aug 7, 2019
1 parent 8aacd44 commit fe77820cb5719df4a8f5bfe3b63a9b13b1b469e5
Showing with 3 additions and 2 deletions.
  1. +3 −2 src/Services/Web/Convos/ConvoService.cs
@@ -30,8 +30,9 @@ public class ConvoService : EpistleWebApiService, IConvoService
/// <returns><c>null</c> if creation failed; the created <see cref="Convo"/>'s unique id.</returns>
public async Task<string> CreateConvo(EpistleRequestBody requestBody)
IRestResponse response = await restClient.ExecuteTaskAsync(EpistleRequest(requestBody, "convos/create"));
return response.Content;
var request = EpistleRequest(requestBody, "convos/create");
IRestResponse response = await restClient.ExecuteTaskAsync(request);
return response.IsSuccessful ? response.Content : null;

/// <summary>

1 comment on commit fe77820


This comment has been minimized.

Copy link
Owner Author

commented on fe77820 Aug 7, 2019

What ;D
The original commit message was:

"Fixed ConvoService::CreateConvo not returning null in case of a failure."

So GitHub recognizes "null" enclosed by ` as actually null. Interesting.

Please sign in to comment.
You can’t perform that action at this time.