style: fix lint (CI)

This commit is contained in:
usbharu 2024-09-16 13:40:48 +00:00 committed by github-actions[bot]
parent f7e151b575
commit 572ceacc67
1 changed files with 0 additions and 2 deletions

View File

@ -40,13 +40,11 @@ class SpringMediaApi(
description: String?,
focus: String?,
): ResponseEntity<MediaAttachment> {
if (file.size == 0L) {
logger.warn("File is empty.")
throw ResponseStatusException(HttpStatus.BAD_REQUEST, "File is empty.")
}
val tempFile = Files.createTempFile("hideout-tmp-file", ".tmp")
Files.newOutputStream(tempFile).use { outputStream ->