mirror of https://github.com/usbharu/Hideout.git
style: fix lint
This commit is contained in:
parent
e5d1a8d4a6
commit
db2046b6e1
|
@ -77,6 +77,7 @@ class APUserServiceImpl(
|
||||||
override suspend fun fetchPerson(url: String, targetActor: String?): Person =
|
override suspend fun fetchPerson(url: String, targetActor: String?): Person =
|
||||||
fetchPersonWithEntity(url, targetActor).first
|
fetchPersonWithEntity(url, targetActor).first
|
||||||
|
|
||||||
|
@Suppress("LongMethod")
|
||||||
override suspend fun fetchPersonWithEntity(url: String, targetActor: String?): Pair<Person, User> {
|
override suspend fun fetchPersonWithEntity(url: String, targetActor: String?): Pair<Person, User> {
|
||||||
return try {
|
return try {
|
||||||
val userEntity = userQueryService.findByUrl(url)
|
val userEntity = userQueryService.findByUrl(url)
|
||||||
|
|
|
@ -37,7 +37,7 @@ class HttpSignatureFilter(
|
||||||
transaction.transaction {
|
transaction.transaction {
|
||||||
try {
|
try {
|
||||||
userQueryService.findByKeyId(signature.keyId)
|
userQueryService.findByKeyId(signature.keyId)
|
||||||
} catch (e: FailedToGetResourcesException) {
|
} catch (_: FailedToGetResourcesException) {
|
||||||
apUserService.fetchPerson(signature.keyId)
|
apUserService.fetchPerson(signature.keyId)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -272,7 +272,9 @@ class ExposedOAuth2AuthorizationService(
|
||||||
oidcIdTokenValue,
|
oidcIdTokenValue,
|
||||||
oidcTokenIssuedAt,
|
oidcTokenIssuedAt,
|
||||||
oidcTokenExpiresAt,
|
oidcTokenExpiresAt,
|
||||||
oidcTokenMetadata.getValue(OAuth2Authorization.Token.CLAIMS_METADATA_NAME) as MutableMap<String, Any>?
|
@Suppress("CastToNullableType")
|
||||||
|
oidcTokenMetadata.getValue(OAuth2Authorization.Token.CLAIMS_METADATA_NAME)
|
||||||
|
as MutableMap<String, Any>?
|
||||||
)
|
)
|
||||||
|
|
||||||
builder.token(oidcIdToken) { it.putAll(oidcTokenMetadata) }
|
builder.token(oidcIdToken) { it.putAll(oidcTokenMetadata) }
|
||||||
|
|
|
@ -34,6 +34,7 @@ class MovieMediaProcessService : MediaProcessService {
|
||||||
TODO("Not yet implemented")
|
TODO("Not yet implemented")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Suppress("LongMethod", "NestedBlockDepth", "CognitiveComplexMethod")
|
||||||
override suspend fun process(
|
override suspend fun process(
|
||||||
mimeType: MimeType,
|
mimeType: MimeType,
|
||||||
fileName: String,
|
fileName: String,
|
||||||
|
|
Loading…
Reference in New Issue