From: Feross Aboukhadijeh Date: Fri, 16 Feb 2018 07:58:34 +0000 (-0800) Subject: style X-Git-Url: https://zoso.dev/?a=commitdiff_plain;h=d86405a4e6aeacccce15fa9120f9a0ebf2da95c7;p=buffer.git style --- 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 } })