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 48a70d2 commit 77cd2dbCopy full SHA for 77cd2db
index.js
@@ -44,7 +44,7 @@ var useArrayBuffer = typeof ArrayBuffer !== 'undefined' &&
44
ArrayBuffer.isView &&
45
(Buffer.prototype instanceof Uint8Array || Buffer.TYPED_ARRAY_SUPPORT)
46
47
-function toBuffer (data, encoding) {
+function toBuffer(data, encoding) {
48
// No need to do anything for exact instance
49
// This is only valid when safe-buffer.Buffer === buffer.Buffer, i.e. when Buffer.from/Buffer.alloc existed
50
if (data instanceof Buffer) return data
0 commit comments