style: fix lint

This commit is contained in:
usbharu 2023-11-27 16:04:06 +09:00
parent e5d1a8d4a6
commit db2046b6e1
4 changed files with 6 additions and 2 deletions

View File

@ -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)

View File

@ -37,7 +37,7 @@ class HttpSignatureFilter(
transaction.transaction {
try {
userQueryService.findByKeyId(signature.keyId)
} catch (e: FailedToGetResourcesException) {
} catch (_: FailedToGetResourcesException) {
apUserService.fetchPerson(signature.keyId)
}
}

View File

@ -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) }

View File

@ -34,6 +34,7 @@ class MovieMediaProcessService : MediaProcessService {
TODO("Not yet implemented")
}
@Suppress("LongMethod", "NestedBlockDepth", "CognitiveComplexMethod")
override suspend fun process(
mimeType: MimeType,
fileName: String,