Skip to content

Commit 3ae1844

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

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

index.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,8 @@ function toBuffer(data, encoding) {
7575
* Also, this is from a different Buffer polyfill implementation then we have, as instanceof check failed
7676
* Convert to our current Buffer implementation
7777
*/
78-
if (Buffer.isBuffer(data) &&
78+
if (
79+
Buffer.isBuffer(data) &&
7980
data.constructor &&
8081
typeof data.constructor.isBuffer === 'function' &&
8182
data.constructor.isBuffer(data)

0 commit comments

Comments
 (0)