Skip to content

Commit a89b8fa

Browse files
committed
Utils.kt code formatting
1 parent b3c80ee commit a89b8fa

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/Utils.kt

+5-2
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,12 @@ import java.security.MessageDigest
55
/**
66
* Reads lines from the given input txt file.
77
*/
8-
fun readInput(name: String) = File("src", "$name.txt").readLines()
8+
fun readInput(name: String) = File("src", "$name.txt")
9+
.readLines()
910

1011
/**
1112
* Converts string to md5 hash.
1213
*/
13-
fun String.md5(): String = BigInteger(1, MessageDigest.getInstance("MD5").digest(toByteArray())).toString(16).padStart(32, '0')
14+
fun String.md5() = BigInteger(1, MessageDigest.getInstance("MD5").digest(toByteArray()))
15+
.toString(16)
16+
.padStart(32, '0')

0 commit comments

Comments
 (0)