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 {
|
override fun toString(): String {
|
||||||
return "Person(" +
|
return "Person(" +
|
||||||
"name=$name, " +
|
"name=$name, " +
|
||||||
"id='$id', " +
|
"id='$id', " +
|
||||||
"preferredUsername='$preferredUsername', " +
|
"preferredUsername='$preferredUsername', " +
|
||||||
"summary=$summary, " +
|
"summary=$summary, " +
|
||||||
"inbox='$inbox', " +
|
"inbox='$inbox', " +
|
||||||
"outbox='$outbox', " +
|
"outbox='$outbox', " +
|
||||||
|
|
|
@ -27,9 +27,9 @@ class NoteQueryServiceImpl(private val postRepository: PostRepository, private v
|
||||||
.select { Posts.id eq id }
|
.select { Posts.id eq id }
|
||||||
.let {
|
.let {
|
||||||
(it.toNote() ?: return null) to (
|
(it.toNote() ?: return null) to (
|
||||||
postQueryMapper.map(it)
|
postQueryMapper.map(it)
|
||||||
.singleOrNull() ?: return null
|
.singleOrNull() ?: return null
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -41,9 +41,9 @@ class NoteQueryServiceImpl(private val postRepository: PostRepository, private v
|
||||||
.select { Posts.apId eq apId }
|
.select { Posts.apId eq apId }
|
||||||
.let {
|
.let {
|
||||||
(it.toNote() ?: return null) to (
|
(it.toNote() ?: return null) to (
|
||||||
postQueryMapper.map(it)
|
postQueryMapper.map(it)
|
||||||
.singleOrNull() ?: return null
|
.singleOrNull() ?: return null
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue