From: Feross Aboukhadijeh Date: Thu, 29 Oct 2020 03:38:37 +0000 (-1000) Subject: standard X-Git-Url: https://zoso.dev/?a=commitdiff_plain;h=3e68331e8f526cd54856cb4ef6feea7312b219d6;p=buffer.git standard --- diff --git a/index.js b/index.js index 775a514..1f4871b 100644 --- a/index.js +++ b/index.js @@ -153,9 +153,7 @@ function from (value, encodingOrOffset, length) { if (typeof Symbol !== 'undefined' && Symbol.toPrimitive != null && typeof value[Symbol.toPrimitive] === 'function') { - return Buffer.from( - value[Symbol.toPrimitive]('string'), encodingOrOffset, length - ) + return Buffer.from(value[Symbol.toPrimitive]('string'), encodingOrOffset, length) } throw new TypeError(