Apply suggestions from code review

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
This commit is contained in:
usbharu 2023-12-21 15:07:28 +09:00 committed by GitHub
parent f38d339802
commit 5be0d7d9c2
2 changed files with 8 additions and 8 deletions

View File

@ -67,9 +67,9 @@ constructor(
override fun toString(): String {
return "Person(" +
"name=$name, " +
"name=$name, " +
"id='$id', " +
"preferredUsername='$preferredUsername', " +
"preferredUsername='$preferredUsername', " +
"summary=$summary, " +
"inbox='$inbox', " +
"outbox='$outbox', " +

View File

@ -27,9 +27,9 @@ class NoteQueryServiceImpl(private val postRepository: PostRepository, private v
.select { Posts.id eq id }
.let {
(it.toNote() ?: return null) to (
postQueryMapper.map(it)
.singleOrNull() ?: return null
)
postQueryMapper.map(it)
.singleOrNull() ?: return null
)
}
}
@ -41,9 +41,9 @@ class NoteQueryServiceImpl(private val postRepository: PostRepository, private v
.select { Posts.apId eq apId }
.let {
(it.toNote() ?: return null) to (
postQueryMapper.map(it)
.singleOrNull() ?: return null
)
postQueryMapper.map(it)
.singleOrNull() ?: return null
)
}
}