Skip to content

Commit 02162ff

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

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/schema/uuid.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ function binaryToString(uuidBin) {
5454
// i(hasezoey) dont quite know why, but "uuidBin" may sometimes also be the already processed string
5555
let hex;
5656
if (typeof uuidBin !== 'string' && uuidBin != null) {
57-
hex = uuidBin != null && uuidBin.toString('hex');
57+
hex = uuidBin.toString('hex');
5858
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);
5959
return uuidStr;
6060
}

0 commit comments

Comments
 (0)