style: fix lint

This commit is contained in:
usbharu 2023-10-27 14:08:38 +09:00
parent 61ee7ab59f
commit 2d8deb0d4f
2 changed files with 2 additions and 6 deletions

View File

@ -35,7 +35,6 @@ interface APNoteService {
suspend fun createNote(post: Post)
@Cacheable("fetchNote")
fun fetchNoteAsync(url: String, targetActor: String? = null): Deferred<Note> {
return CoroutineScope(Dispatchers.IO + MDCContext()).async {
@ -95,8 +94,6 @@ class APNoteServiceImpl(
logger.debug("SUCCESS Create Local Note ${post.url}")
}
override suspend fun fetchNote(url: String, targetActor: String?): Note {
logger.debug("START Fetch Note url: {}", url)
try {

View File

@ -196,7 +196,8 @@ class APServiceImpl(
|
|***** Trace End Activity *****
|
""".trimMargin(), readTree.toPrettyString()
""".trimMargin(),
readTree.toPrettyString()
)
if (readTree.isObject.not()) {
throw JsonParseException("Json is not object.")
@ -227,6 +228,4 @@ class APServiceImpl(
}
}
}
}