diff --git a/reference-implementation/lib/ReadableStreamBYOBReader-impl.js b/reference-implementation/lib/ReadableStreamBYOBReader-impl.js index 30023c817..954761162 100644 --- a/reference-implementation/lib/ReadableStreamBYOBReader-impl.js +++ b/reference-implementation/lib/ReadableStreamBYOBReader-impl.js @@ -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) {