mirror of https://github.com/usbharu/Hideout.git
Apply suggestions from code review
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
This commit is contained in:
parent
f38d339802
commit
5be0d7d9c2
|
@ -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', " +
|
||||
|
|
|
@ -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
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue