Skip to content

Commit c479702

Browse files
authored
chore: removes redundant check
1 parent b92392e commit c479702

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) && contentTypeMediaType.StartsWith(CoreConstants.MimeTypeNames.Application.Json, StringComparison.OrdinalIgnoreCase))
111+
if (httpResponseMessage is { Content.Headers.ContentType.MediaType: string 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)