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
|
private val idGenerateService: IdGenerateService
|
||||||
) : ReactionRepository {
|
) : ReactionRepository {
|
||||||
|
|
||||||
|
|
||||||
override suspend fun save(reaction: Reaction): Reaction {
|
override suspend fun save(reaction: Reaction): Reaction {
|
||||||
if (Reactions.select { Reactions.id eq reaction.id }.empty()) {
|
if (Reactions.select { Reactions.id eq reaction.id }.empty()) {
|
||||||
Reactions.insert {
|
Reactions.insert {
|
||||||
|
|
|
@ -28,7 +28,6 @@ import org.springframework.security.oauth2.server.authorization.client.Registere
|
||||||
@Repository
|
@Repository
|
||||||
class RegisteredClientRepositoryImpl : RegisteredClientRepository {
|
class RegisteredClientRepositoryImpl : RegisteredClientRepository {
|
||||||
|
|
||||||
|
|
||||||
override fun save(registeredClient: SpringRegisteredClient?) {
|
override fun save(registeredClient: SpringRegisteredClient?) {
|
||||||
requireNotNull(registeredClient)
|
requireNotNull(registeredClient)
|
||||||
val singleOrNull = RegisteredClient.select { RegisteredClient.id eq registeredClient.id }.singleOrNull()
|
val singleOrNull = RegisteredClient.select { RegisteredClient.id eq registeredClient.id }.singleOrNull()
|
||||||
|
|
|
@ -31,7 +31,6 @@ class ExposedOAuth2AuthorizationService(
|
||||||
) :
|
) :
|
||||||
OAuth2AuthorizationService {
|
OAuth2AuthorizationService {
|
||||||
|
|
||||||
|
|
||||||
@Suppress("LongMethod", "CyclomaticComplexMethod")
|
@Suppress("LongMethod", "CyclomaticComplexMethod")
|
||||||
override fun save(authorization: OAuth2Authorization?): Unit = runBlocking {
|
override fun save(authorization: OAuth2Authorization?): Unit = runBlocking {
|
||||||
requireNotNull(authorization)
|
requireNotNull(authorization)
|
||||||
|
|
|
@ -10,5 +10,4 @@ interface UserAuthService {
|
||||||
suspend fun usernameAlreadyUse(username: String): Boolean
|
suspend fun usernameAlreadyUse(username: String): Boolean
|
||||||
|
|
||||||
suspend fun generateKeyPair(): KeyPair
|
suspend fun generateKeyPair(): KeyPair
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue