Skip to content

Commit 77cd2db

Browse files
ChALkeRljharb
andauthored
Update index.js
Co-authored-by: Jordan Harband <[email protected]>
1 parent 48a70d2 commit 77cd2db

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ var useArrayBuffer = typeof ArrayBuffer !== 'undefined' &&
4444
ArrayBuffer.isView &&
4545
(Buffer.prototype instanceof Uint8Array || Buffer.TYPED_ARRAY_SUPPORT)
4646

47-
function toBuffer (data, encoding) {
47+
function toBuffer(data, encoding) {
4848
// No need to do anything for exact instance
4949
// This is only valid when safe-buffer.Buffer === buffer.Buffer, i.e. when Buffer.from/Buffer.alloc existed
5050
if (data instanceof Buffer) return data

0 commit comments

Comments
 (0)