We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3ae1844 commit 50953d2Copy full SHA for 50953d2
index.js
@@ -80,7 +80,9 @@ function toBuffer(data, encoding) {
80
data.constructor &&
81
typeof data.constructor.isBuffer === 'function' &&
82
data.constructor.isBuffer(data)
83
- ) return Buffer.from(data)
+ ) {
84
+ return Buffer.from(data)
85
+}
86
87
throw new TypeError('The "data" argument must be of type string or an instance of Buffer, TypedArray, or DataView.')
88
}
0 commit comments