mirror of
https://github.com/usbharu/Hideout.git
synced 2026-09-26 06:51:09 +00:00
Apply suggestions from code review
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
co-authored by
github-actions[bot]
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', " +
|
||||
|
||||
+6
-6
@@ -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
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user