Skip to content

Commit

Permalink
Fix lint error
Browse files Browse the repository at this point in the history
  • Loading branch information
MattiasBuelens committed Sep 16, 2023
1 parent e381f25 commit c39be05
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions reference-implementation/lib/ReadableStreamBYOBReader-impl.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,10 @@ class ReadableStreamBYOBReaderImpl {
new RangeError('options.min must be less than or equal to view\'s length')
);
}
} else {
if (options.min > view.byteLength) {
return promiseRejectedWith(
new RangeError('options.min must be less than or equal to view\'s byteLength')
);
}
} else if (options.min > view.byteLength) {
return promiseRejectedWith(
new RangeError('options.min must be less than or equal to view\'s byteLength')
);
}

if (this._stream === undefined) {
Expand Down

0 comments on commit c39be05

Please sign in to comment.