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 499582a commit 02162ffCopy full SHA for 02162ff
lib/schema/uuid.js
@@ -54,7 +54,7 @@ function binaryToString(uuidBin) {
54
// i(hasezoey) dont quite know why, but "uuidBin" may sometimes also be the already processed string
55
let hex;
56
if (typeof uuidBin !== 'string' && uuidBin != null) {
57
- hex = uuidBin != null && uuidBin.toString('hex');
+ hex = uuidBin.toString('hex');
58
const uuidStr = hex.substring(0, 8) + '-' + hex.substring(8, 8 + 4) + '-' + hex.substring(12, 12 + 4) + '-' + hex.substring(16, 16 + 4) + '-' + hex.substring(20, 20 + 12);
59
return uuidStr;
60
}
0 commit comments