diff --git a/TelegramBotAPI-extensions-utils/src/jvmMain/kotlin/com/github/insanusmokrassar/TelegramBotAPI/types/files/PathedFile.kt b/TelegramBotAPI-extensions-utils/src/jvmMain/kotlin/com/github/insanusmokrassar/TelegramBotAPI/types/files/PathedFile.kt index 4b11d312bf..4bbf2d2c5a 100644 --- a/TelegramBotAPI-extensions-utils/src/jvmMain/kotlin/com/github/insanusmokrassar/TelegramBotAPI/types/files/PathedFile.kt +++ b/TelegramBotAPI-extensions-utils/src/jvmMain/kotlin/com/github/insanusmokrassar/TelegramBotAPI/types/files/PathedFile.kt @@ -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() }