mirror of
https://github.com/usbharu/Hideout.git
synced 2026-09-26 23:11:10 +00:00
style: fix lint
This commit is contained in:
@@ -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)
|
||||
|
||||
+1
-1
@@ -37,7 +37,7 @@ class HttpSignatureFilter(
|
||||
transaction.transaction {
|
||||
try {
|
||||
userQueryService.findByKeyId(signature.keyId)
|
||||
} catch (e: FailedToGetResourcesException) {
|
||||
} catch (_: FailedToGetResourcesException) {
|
||||
apUserService.fetchPerson(signature.keyId)
|
||||
}
|
||||
}
|
||||
|
||||
+3
-1
@@ -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) }
|
||||
|
||||
+1
@@ -34,6 +34,7 @@ class MovieMediaProcessService : MediaProcessService {
|
||||
TODO("Not yet implemented")
|
||||
}
|
||||
|
||||
@Suppress("LongMethod", "NestedBlockDepth", "CognitiveComplexMethod")
|
||||
override suspend fun process(
|
||||
mimeType: MimeType,
|
||||
fileName: String,
|
||||
|
||||
Reference in New Issue
Block a user