Skip to content

Commit 084a67d

Browse files
authored
Update utils.go
1 parent 31c1705 commit 084a67d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/utils/utils.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -366,6 +366,9 @@ func LockMemory() error {
366366
}
367367

368368
func CheckValidUUID(uuidCode string) bool {
369+
if len(uuidCode) == 0 {
370+
return false
371+
}
369372
return regexUUID.MatchString(uuidCode)
370373
}
371374

0 commit comments

Comments
 (0)