Update src/main/kotlin/dev/usbharu/hideout/core/service/media/RemoteMediaDownloadServiceImpl.kt

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
This commit is contained in:
usbharu 2024-01-25 13:47:52 +09:00 committed by GitHub
parent 5db462d9d8
commit c5aee7b35d
1 changed files with 3 additions and 1 deletions

View File

@ -30,7 +30,9 @@ class RemoteMediaDownloadServiceImpl(
val contentLength = createTempFile.toFile().length()
if (contentLength >= mediaConfig.remoteMediaFileSizeLimit) {
throw RemoteMediaFileSizeException("File size is too large. $contentLength >= ${mediaConfig.remoteMediaFileSizeLimit}")
throw RemoteMediaFileSizeException(
"File size is too large. $contentLength >= ${mediaConfig.remoteMediaFileSizeLimit}"
)
}
logger.info("SUCCESS Download remote file. url: {}", url)