1
0
mirror of https://github.com/InsanusMokrassar/TelegramBotAPI.git synced 2024-11-22 16:23: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( fun PathedFile.asBytes(
telegramAPIUrlsKeeper: TelegramAPIUrlsKeeper telegramAPIUrlsKeeper: TelegramAPIUrlsKeeper
): ByteArray { ): ByteArray = this.asStream(telegramAPIUrlsKeeper)
return this.asStream(telegramAPIUrlsKeeper).use { input -> .use { input -> input.readBytes() }
input.readBytes()
}
}