From d86405a4e6aeacccce15fa9120f9a0ebf2da95c7 Mon Sep 17 00:00:00 2001 From: Feross Aboukhadijeh Date: Thu, 15 Feb 2018 23:58:34 -0800 Subject: [PATCH] style --- index.js | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/index.js b/index.js index db55513..b2f6676 100644 --- a/index.js +++ b/index.js @@ -55,18 +55,14 @@ function typedArraySupport () { Object.defineProperty(Buffer.prototype, 'parent', { get: function () { - if (!Buffer.isBuffer(this)) { - return undefined - } + if (!Buffer.isBuffer(this)) return undefined return this.buffer } }) Object.defineProperty(Buffer.prototype, 'offset', { get: function () { - if (!Buffer.isBuffer(this)) { - return undefined - } + if (!Buffer.isBuffer(this)) return undefined return this.byteOffset } }) -- 2.34.1