]> zoso.dev Git - buffer.git/commitdiff
standard
authorFeross Aboukhadijeh <feross@feross.org>
Thu, 29 Oct 2020 03:38:37 +0000 (17:38 -1000)
committerFeross Aboukhadijeh <feross@feross.org>
Thu, 29 Oct 2020 03:38:37 +0000 (17:38 -1000)
index.js

index 775a5143472253ee99f711d066083a08d060dbdc..1f4871b85bbad8e7f8eea17f6683477da55e30ae 100644 (file)
--- 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(