mirror of
https://github.com/usbharu/Hideout.git
synced 2026-07-24 22:23:42 +00:00
style: fix lint
This commit is contained in:
@@ -64,10 +64,9 @@ import java.security.interfaces.RSAPrivateKey
|
||||
import java.security.interfaces.RSAPublicKey
|
||||
import java.util.*
|
||||
|
||||
|
||||
@EnableWebSecurity(debug = false)
|
||||
@Configuration
|
||||
@Suppress("FunctionMaxLength", "TooManyFunctions")
|
||||
@Suppress("FunctionMaxLength", "TooManyFunctions", "LongMethod")
|
||||
class SecurityConfig {
|
||||
|
||||
@Bean
|
||||
@@ -246,9 +245,6 @@ class SecurityConfig {
|
||||
authorize(anyRequest, authenticated)
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
oauth2ResourceServer {
|
||||
jwt { }
|
||||
}
|
||||
@@ -391,7 +387,6 @@ class SecurityConfig {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ConfigurationProperties("hideout.security.jwt")
|
||||
@ConditionalOnProperty(name = ["hideout.security.jwt.generate"], havingValue = "")
|
||||
data class JwkConfig(
|
||||
|
||||
@@ -23,6 +23,7 @@ sealed class Page {
|
||||
}
|
||||
|
||||
companion object {
|
||||
@Suppress("FunctionMinLength")
|
||||
fun of(
|
||||
maxId: Long? = null,
|
||||
sinceId: Long? = null,
|
||||
|
||||
+2
-3
@@ -92,9 +92,8 @@ class MastodonFilterApiController(
|
||||
)
|
||||
}
|
||||
|
||||
override fun apiV2FiltersGet(): ResponseEntity<Flow<Filter>> {
|
||||
return ResponseEntity.ok(mastodonFilterApiService.filters(loginUserContextHolder.getLoginUserId()))
|
||||
}
|
||||
override fun apiV2FiltersGet(): ResponseEntity<Flow<Filter>> =
|
||||
ResponseEntity.ok(mastodonFilterApiService.filters(loginUserContextHolder.getLoginUserId()))
|
||||
|
||||
override suspend fun apiV2FiltersIdDelete(id: String): ResponseEntity<Any> {
|
||||
mastodonFilterApiService.deleteById(loginUserContextHolder.getLoginUserId(), id.toLong())
|
||||
|
||||
Reference in New Issue
Block a user