Skip to content

Commit

Permalink
Merge pull request #127 from Azure-Samples/UpgradeCustomVoiceAPI
Browse files Browse the repository at this point in the history
Modify return parameters
  • Loading branch information
neoguo0601 authored Aug 19, 2019
2 parents f702058 + 360aead commit 41e39fd
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,7 @@ public static T Get<T>(string subscriptionKey, string url)
if (response.StatusCode != HttpStatusCode.OK)
{
PrintErrorMessage(response);
var items = JsonConvert.DeserializeObject<T>(" ");
return items;
return default(T);
}

using (var responseStream = response.Content.ReadAsStreamAsync().Result)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using CustomVoice_API.API.DTO;
using System;
using System.Collections.Generic;
using System.Globalization;
using System.Net;
Expand Down

0 comments on commit 41e39fd

Please sign in to comment.