style: スタイルを修正

This commit is contained in:
usbharu 2023-10-12 02:04:08 +09:00
parent 9c6c0a450b
commit 91c18c4c64
3 changed files with 3 additions and 3 deletions

View File

@ -21,6 +21,6 @@ class MdcXrequestIdFilter : Filter {
}
companion object {
val KEY = "x-request-id"
private const val KEY = "x-request-id"
}
}

View File

@ -35,7 +35,7 @@ class PostServiceImpl(
private suspend fun internalCreate(post: Post, isLocal: Boolean): Post {
val save = try {
postRepository.save(post)
} catch (e: ExposedSQLException) {
} catch (_: ExposedSQLException) {
postQueryService.findByApId(post.apId)
}
timelineService.publishTimeline(save, isLocal)

View File

@ -67,7 +67,7 @@ class UserServiceImpl(
)
return try {
userRepository.save(userEntity)
} catch (e: ExposedSQLException) {
} catch (_: ExposedSQLException) {
userQueryService.findByUrl(user.url)
}
}