Skip to content

Commit

Permalink
Update tools/test-proxy/Azure.Sdk.Tools.TestProxy/RecordingHandler.cs
Browse files Browse the repository at this point in the history
Co-authored-by: Mike Harder <[email protected]>
  • Loading branch information
scbedd and mikeharder authored Feb 24, 2023
1 parent 0aee049 commit bb9ff7e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -492,7 +492,7 @@ public byte[][] GetBatches(byte[] bodyData, int batchCount)

for(int i = 0; i < batches.Length; i++)
{
var calculatedChunkLength = i == batches.Length - 1 && batches.Length > 1 && remainder > 0 ? remainder : chunkLength;
var calculatedChunkLength = ((i == batches.Length - 1) && (batches.Length > 1) && (remainder > 0)) ? remainder : chunkLength;
var batch = new byte[calculatedChunkLength];
Array.Copy(bodyData, i * chunkLength, batch, 0, calculatedChunkLength);

Expand Down

0 comments on commit bb9ff7e

Please sign in to comment.