Skip to content

Commit

Permalink
MBX-3650: refactor extension method isUuid
Browse files Browse the repository at this point in the history
  • Loading branch information
Sergey Sozinov committed Sep 19, 2024
1 parent 263d5d1 commit a5c3e1b
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions sdk/src/main/java/cloud/mindbox/mobile_sdk/Extensions.kt
Original file line number Diff line number Diff line change
Expand Up @@ -235,12 +235,8 @@ internal fun String.parseTimeSpanToMillis(): Long {
}

internal fun String.isUuid(): Boolean {
return if (this.isBlank()) {
false
} else {
loggingRunCatching(false) {
UUID.fromString(this)
true
}
return loggingRunCatching(false) {
UUID.fromString(this)
true
}
}

0 comments on commit a5c3e1b

Please sign in to comment.