mirror of https://github.com/usbharu/Hideout.git
style: fix lint
This commit is contained in:
parent
61ee7ab59f
commit
2d8deb0d4f
|
@ -35,7 +35,6 @@ interface APNoteService {
|
||||||
|
|
||||||
suspend fun createNote(post: Post)
|
suspend fun createNote(post: Post)
|
||||||
|
|
||||||
|
|
||||||
@Cacheable("fetchNote")
|
@Cacheable("fetchNote")
|
||||||
fun fetchNoteAsync(url: String, targetActor: String? = null): Deferred<Note> {
|
fun fetchNoteAsync(url: String, targetActor: String? = null): Deferred<Note> {
|
||||||
return CoroutineScope(Dispatchers.IO + MDCContext()).async {
|
return CoroutineScope(Dispatchers.IO + MDCContext()).async {
|
||||||
|
@ -95,8 +94,6 @@ class APNoteServiceImpl(
|
||||||
logger.debug("SUCCESS Create Local Note ${post.url}")
|
logger.debug("SUCCESS Create Local Note ${post.url}")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
override suspend fun fetchNote(url: String, targetActor: String?): Note {
|
override suspend fun fetchNote(url: String, targetActor: String?): Note {
|
||||||
logger.debug("START Fetch Note url: {}", url)
|
logger.debug("START Fetch Note url: {}", url)
|
||||||
try {
|
try {
|
||||||
|
|
|
@ -196,7 +196,8 @@ class APServiceImpl(
|
||||||
|
|
|
|
||||||
|***** Trace End Activity *****
|
|***** Trace End Activity *****
|
||||||
|
|
|
|
||||||
""".trimMargin(), readTree.toPrettyString()
|
""".trimMargin(),
|
||||||
|
readTree.toPrettyString()
|
||||||
)
|
)
|
||||||
if (readTree.isObject.not()) {
|
if (readTree.isObject.not()) {
|
||||||
throw JsonParseException("Json is not object.")
|
throw JsonParseException("Json is not object.")
|
||||||
|
@ -227,6 +228,4 @@ class APServiceImpl(
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue