mirror of
https://github.com/usbharu/Hideout.git
synced 2026-08-05 20:53:44 +00:00
style: スタイルを修正
This commit is contained in:
@@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user