From 1291d94286b1307cc739864fce616d16f50178b7 Mon Sep 17 00:00:00 2001 From: Feross Aboukhadijeh Date: Wed, 8 Feb 2017 19:25:08 -0800 Subject: [PATCH] remove unneeded property access --- index.js | 2 -- 1 file changed, 2 deletions(-) diff --git a/index.js b/index.js index a7017e9..c6bfc10 100644 --- a/index.js +++ b/index.js @@ -216,8 +216,6 @@ function fromArrayLike (array) { } function fromArrayBuffer (array, byteOffset, length) { - array.byteLength // this throws if `array` is not a valid ArrayBuffer - if (byteOffset < 0 || array.byteLength < byteOffset) { throw new RangeError('\'offset\' is out of bounds') } -- 2.34.1