1
0
mirror of https://github.com/InsanusMokrassar/TelegramBotAPI.git synced 2024-11-22 00:03:48 +00:00

Converted to expression body

This commit is contained in:
slesh 2020-08-23 01:05:12 +03:00
parent 8b79c5c76b
commit 3da74b0c66

View File

@ -25,8 +25,5 @@ fun PathedFile.asFile(
fun PathedFile.asBytes(
telegramAPIUrlsKeeper: TelegramAPIUrlsKeeper
): ByteArray {
return this.asStream(telegramAPIUrlsKeeper).use { input ->
input.readBytes()
}
}
): ByteArray = this.asStream(telegramAPIUrlsKeeper)
.use { input -> input.readBytes() }