From a0c24f98bdd4a0a8aa48aec7b1faf49ab1f00948 Mon Sep 17 00:00:00 2001 From: usbharu <64310155+usbharu@users.noreply.github.com> Date: Sat, 30 Sep 2023 13:51:55 +0900 Subject: [PATCH] =?UTF-8?q?style:=20=E3=82=B9=E3=82=BF=E3=82=A4=E3=83=AB?= =?UTF-8?q?=E3=82=92=E8=AA=BF=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../dev/usbharu/hideout/repository/ReactionRepositoryImpl.kt | 1 - .../usbharu/hideout/repository/RegisteredClientRepositoryImpl.kt | 1 - .../hideout/service/auth/ExposedOAuth2AuthorizationService.kt | 1 - .../kotlin/dev/usbharu/hideout/service/user/UserAuthService.kt | 1 - 4 files changed, 4 deletions(-) diff --git a/src/main/kotlin/dev/usbharu/hideout/repository/ReactionRepositoryImpl.kt b/src/main/kotlin/dev/usbharu/hideout/repository/ReactionRepositoryImpl.kt index 03a65549..34c25d82 100644 --- a/src/main/kotlin/dev/usbharu/hideout/repository/ReactionRepositoryImpl.kt +++ b/src/main/kotlin/dev/usbharu/hideout/repository/ReactionRepositoryImpl.kt @@ -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 { diff --git a/src/main/kotlin/dev/usbharu/hideout/repository/RegisteredClientRepositoryImpl.kt b/src/main/kotlin/dev/usbharu/hideout/repository/RegisteredClientRepositoryImpl.kt index 5acfd3fc..81632609 100644 --- a/src/main/kotlin/dev/usbharu/hideout/repository/RegisteredClientRepositoryImpl.kt +++ b/src/main/kotlin/dev/usbharu/hideout/repository/RegisteredClientRepositoryImpl.kt @@ -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() diff --git a/src/main/kotlin/dev/usbharu/hideout/service/auth/ExposedOAuth2AuthorizationService.kt b/src/main/kotlin/dev/usbharu/hideout/service/auth/ExposedOAuth2AuthorizationService.kt index 61e8d41d..b3c3a2a2 100644 --- a/src/main/kotlin/dev/usbharu/hideout/service/auth/ExposedOAuth2AuthorizationService.kt +++ b/src/main/kotlin/dev/usbharu/hideout/service/auth/ExposedOAuth2AuthorizationService.kt @@ -31,7 +31,6 @@ class ExposedOAuth2AuthorizationService( ) : OAuth2AuthorizationService { - @Suppress("LongMethod", "CyclomaticComplexMethod") override fun save(authorization: OAuth2Authorization?): Unit = runBlocking { requireNotNull(authorization) diff --git a/src/main/kotlin/dev/usbharu/hideout/service/user/UserAuthService.kt b/src/main/kotlin/dev/usbharu/hideout/service/user/UserAuthService.kt index 556fb618..0028cdfb 100644 --- a/src/main/kotlin/dev/usbharu/hideout/service/user/UserAuthService.kt +++ b/src/main/kotlin/dev/usbharu/hideout/service/user/UserAuthService.kt @@ -10,5 +10,4 @@ interface UserAuthService { suspend fun usernameAlreadyUse(username: String): Boolean suspend fun generateKeyPair(): KeyPair - }