Skip to content

Commit 499582a

Browse files
vkarpov15hasezoey
andauthored
Update lib/schema/uuid.js
Co-authored-by: hasezoey <[email protected]>
1 parent 5b5f3d8 commit 499582a

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

lib/schema/uuid.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -80,9 +80,7 @@ function SchemaUUID(key, options) {
8080
if (Buffer.isBuffer(value)) {
8181
return binaryToString(value);
8282
} else if (value instanceof Binary) {
83-
if (value instanceof Binary) {
84-
return binaryToString(value.buffer);
85-
}
83+
return binaryToString(value.buffer);
8684
} else if (utils.isPOJO(value) && value.type === 'Buffer' && Array.isArray(value.data)) {
8785
// Cloned buffers look like `{ type: 'Buffer', data: [5, 224, ...] }`
8886
return binaryToString(Buffer.from(value.data));

0 commit comments

Comments
 (0)