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 762d063 commit 5b5f3d8Copy full SHA for 5b5f3d8
lib/schema/uuid.js
@@ -80,9 +80,9 @@ function SchemaUUID(key, options) {
80
if (Buffer.isBuffer(value)) {
81
return binaryToString(value);
82
} else if (value instanceof Binary) {
83
- if (value instanceof Binary) {
84
- return binaryToString(value.buffer);
85
- }
+ if (value instanceof Binary) {
+ return binaryToString(value.buffer);
+ }
86
} else if (utils.isPOJO(value) && value.type === 'Buffer' && Array.isArray(value.data)) {
87
// Cloned buffers look like `{ type: 'Buffer', data: [5, 224, ...] }`
88
return binaryToString(Buffer.from(value.data));
0 commit comments