mirror of https://github.com/usbharu/Hideout.git
style: スタイルを調整
This commit is contained in:
parent
c9eaf899d5
commit
a0c24f98bd
|
@ -12,7 +12,6 @@ class ReactionRepositoryImpl(
|
|||
private val idGenerateService: IdGenerateService
|
||||
) : ReactionRepository {
|
||||
|
||||
|
||||
override suspend fun save(reaction: Reaction): Reaction {
|
||||
if (Reactions.select { Reactions.id eq reaction.id }.empty()) {
|
||||
Reactions.insert {
|
||||
|
|
|
@ -28,7 +28,6 @@ import org.springframework.security.oauth2.server.authorization.client.Registere
|
|||
@Repository
|
||||
class RegisteredClientRepositoryImpl : RegisteredClientRepository {
|
||||
|
||||
|
||||
override fun save(registeredClient: SpringRegisteredClient?) {
|
||||
requireNotNull(registeredClient)
|
||||
val singleOrNull = RegisteredClient.select { RegisteredClient.id eq registeredClient.id }.singleOrNull()
|
||||
|
|
|
@ -31,7 +31,6 @@ class ExposedOAuth2AuthorizationService(
|
|||
) :
|
||||
OAuth2AuthorizationService {
|
||||
|
||||
|
||||
@Suppress("LongMethod", "CyclomaticComplexMethod")
|
||||
override fun save(authorization: OAuth2Authorization?): Unit = runBlocking {
|
||||
requireNotNull(authorization)
|
||||
|
|
|
@ -10,5 +10,4 @@ interface UserAuthService {
|
|||
suspend fun usernameAlreadyUse(username: String): Boolean
|
||||
|
||||
suspend fun generateKeyPair(): KeyPair
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue