Skip to content

Commit b92392e

Browse files
author
Andrew Omondi
committed
resolve compile error.
1 parent 41517b2 commit b92392e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Microsoft.Graph.Core/Requests/BatchRequestBuilder.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ private static async Task ThrowIfFailedResponseAsync(HttpResponseMessage httpRes
108108
{
109109
if (httpResponseMessage.IsSuccessStatusCode) return;
110110

111-
if (httpResponseMessage is {Content.Headers.ContentType.MediaType: string contentTypeMediaType} && !string.IsNullOrEmpty(contentTypeMediaType) && contentTypeString.StartsWith(CoreConstants.MimeTypeNames.Application.Json, StringComparison.OrdinalIgnoreCase))
111+
if (httpResponseMessage is { Content.Headers.ContentType.MediaType: string contentTypeMediaType } && !string.IsNullOrEmpty(contentTypeMediaType) && contentTypeMediaType.StartsWith(CoreConstants.MimeTypeNames.Application.Json, StringComparison.OrdinalIgnoreCase))
112112
{
113113
using var responseContent = await httpResponseMessage.Content.ReadAsStreamAsync().ConfigureAwait(false);
114114
using var document = await JsonDocument.ParseAsync(responseContent).ConfigureAwait(false);

0 commit comments

Comments
 (0)