Skip to content

Commit

Permalink
Minor change to length check
Browse files Browse the repository at this point in the history
  • Loading branch information
osagie98 committed Jan 8, 2025
1 parent e151027 commit 09c9729
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@
expectedWriteHead = expectedWriteHead + segmentLength;
assert_equals(sourceBuffer.writeHead, expectedWriteHead);
index = index - 1;
if (index == 0) {
if (index <= 0) {
test.done();
return;
}
Expand Down

0 comments on commit 09c9729

Please sign in to comment.