mirror of https://github.com/usbharu/Hideout.git
style: スタイルを修正
This commit is contained in:
parent
9c6c0a450b
commit
91c18c4c64
|
@ -21,6 +21,6 @@ class MdcXrequestIdFilter : Filter {
|
|||
}
|
||||
|
||||
companion object {
|
||||
val KEY = "x-request-id"
|
||||
private const val KEY = "x-request-id"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -67,7 +67,7 @@ class UserServiceImpl(
|
|||
)
|
||||
return try {
|
||||
userRepository.save(userEntity)
|
||||
} catch (e: ExposedSQLException) {
|
||||
} catch (_: ExposedSQLException) {
|
||||
userQueryService.findByUrl(user.url)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue