Skip to content

Commit 9a19fc1

Browse files
Use labeled return for partial md5
1 parent b46a9c1 commit 9a19fc1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/src/main/kotlin/com/d4rk/cleaner/core/utils/extensions/FileExtensions.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ fun File.md5(): String? = runCatching {
2222

2323
fun File.partialMd5(): String? = runCatching {
2424
if (length() <= PARTIAL_HASH_SIZE * 2) {
25-
return md5()
25+
return@runCatching md5()
2626
}
2727

2828
val md = MessageDigest.getInstance("MD5")

0 commit comments

Comments
 (0)