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 =
|
||||
fetchPersonWithEntity(url, targetActor).first
|
||||
|
||||
@Suppress("LongMethod")
|
||||
override suspend fun fetchPersonWithEntity(url: String, targetActor: String?): Pair<Person, User> {
|
||||
return try {
|
||||
val userEntity = userQueryService.findByUrl(url)
|
||||
|
|
|
@ -37,7 +37,7 @@ class HttpSignatureFilter(
|
|||
transaction.transaction {
|
||||
try {
|
||||
userQueryService.findByKeyId(signature.keyId)
|
||||
} catch (e: FailedToGetResourcesException) {
|
||||
} catch (_: FailedToGetResourcesException) {
|
||||
apUserService.fetchPerson(signature.keyId)
|
||||
}
|
||||
}
|
||||
|
|
|
@ -272,7 +272,9 @@ class ExposedOAuth2AuthorizationService(
|
|||
oidcIdTokenValue,
|
||||
oidcTokenIssuedAt,
|
||||
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) }
|
||||
|
|
|
@ -34,6 +34,7 @@ class MovieMediaProcessService : MediaProcessService {
|
|||
TODO("Not yet implemented")
|
||||
}
|
||||
|
||||
@Suppress("LongMethod", "NestedBlockDepth", "CognitiveComplexMethod")
|
||||
override suspend fun process(
|
||||
mimeType: MimeType,
|
||||
fileName: String,
|
||||
|
|
Loading…
Reference in New Issue