Skip to content

Commit

Permalink
fixed arithmetic expressions should declare precedence to increase re…
Browse files Browse the repository at this point in the history
…adability of codes.
  • Loading branch information
bezzad committed Sep 20, 2024
1 parent f02bd91 commit 5beee22
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/Downloader.Test/UnitTests/ChunkDownloaderTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -197,8 +197,7 @@ public async Task OverflowWhenReadStreamTest()
{
// arrange
byte[] randomlyBytes = DummyData.GenerateRandomBytes(Size);
int end = Size / 2 - 1;
Chunk chunk = new(0, end);
Chunk chunk = new(0, (Size / 2) - 1);
ChunkDownloader chunkDownloader = new(chunk, Configuration, Storage);
using MemoryStream memoryStream = new(randomlyBytes);

Expand Down

0 comments on commit 5beee22

Please sign in to comment.