mirror of
https://github.com/InsanusMokrassar/TelegramBotAPI.git
synced 2024-12-22 16:47:13 +00:00
Converted to expression body
This commit is contained in:
parent
8b79c5c76b
commit
3da74b0c66
@ -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() }
|
||||
|
Loading…
Reference in New Issue
Block a user