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 { 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 { private suspend fun internalCreate(post: Post, isLocal: Boolean): Post {
val save = try { val save = try {
postRepository.save(post) postRepository.save(post)
} catch (e: ExposedSQLException) { } catch (_: ExposedSQLException) {
postQueryService.findByApId(post.apId) postQueryService.findByApId(post.apId)
} }
timelineService.publishTimeline(save, isLocal) timelineService.publishTimeline(save, isLocal)

View File

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