Skip to content

Commit 8c474c4

Browse files
authored
Update src/Microsoft.Graph.Core/Requests/Content/BatchRequestContent.cs
1 parent c6f78f5 commit 8c474c4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Microsoft.Graph.Core/Requests/Content/BatchRequestContent.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ public async Task<string> AddBatchRequestStepAsync(RequestInformation requestInf
137137
{
138138
if (BatchRequestSteps.Count >= CoreConstants.BatchRequest.MaxNumberOfRequests)
139139
throw new ArgumentException(string.Format(ErrorConstants.Messages.MaximumValueExceeded, "Number of batch request steps", CoreConstants.BatchRequest.MaxNumberOfRequests));
140-
if (requestId == null)
140+
if (string.IsNullOrEmpty(requestId))
141141
{
142142
requestId = Guid.NewGuid().ToString();
143143
}

0 commit comments

Comments
 (0)