Skip to content

Commit 162fb5b

Browse files
authored
Apply suggestion from @VisualBean
Signed-off-by: Alex Wichmann <VisualBean@users.noreply.github.com>
1 parent 69637b1 commit 162fb5b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ByteBard.AsyncAPI.Readers/Services/DefaultStreamLoader.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ public async Task<Stream> LoadAsync(Uri uri)
5151
return File.OpenRead(uri.AbsolutePath);
5252
case "http":
5353
case "https":
54-
return HttpClient.GetStreamAsync(uri).GetAwaiter().GetResult();
54+
return await HttpClient.GetStreamAsync(uri);
5555
default:
5656
throw new ArgumentException("Unsupported scheme");
5757
}

0 commit comments

Comments
 (0)