From 3351577a115db423863cb0dadb3b845e04c2c588 Mon Sep 17 00:00:00 2001 From: Yaro Luchko Date: Wed, 21 Aug 2024 19:51:45 -0700 Subject: [PATCH] Style fixes --- .../CredentialStorage/AWSCognitoAuthCredentialStore.swift | 2 +- .../CredentialStore/MockCredentialStoreBehavior.swift | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/AmplifyPlugins/Auth/Sources/AWSCognitoAuthPlugin/CredentialStorage/AWSCognitoAuthCredentialStore.swift b/AmplifyPlugins/Auth/Sources/AWSCognitoAuthPlugin/CredentialStorage/AWSCognitoAuthCredentialStore.swift index c578060aaa..fa897dde68 100644 --- a/AmplifyPlugins/Auth/Sources/AWSCognitoAuthPlugin/CredentialStorage/AWSCognitoAuthCredentialStore.swift +++ b/AmplifyPlugins/Auth/Sources/AWSCognitoAuthPlugin/CredentialStorage/AWSCognitoAuthCredentialStore.swift @@ -55,7 +55,7 @@ struct AWSCognitoAuthCredentialStore { let oldAccessGroup = retrieveStoredAccessGroup() if migrateKeychainItemsOfUserSession { try? migrateKeychainItemsToAccessGroup() - } else if oldAccessGroup == nil && oldAccessGroup != accessGroup{ + } else if oldAccessGroup == nil && oldAccessGroup != accessGroup { try? KeychainStore(service: service)._removeAll() } diff --git a/AmplifyPlugins/Auth/Tests/AWSCognitoAuthPluginUnitTests/ActionTests/CredentialStore/MockCredentialStoreBehavior.swift b/AmplifyPlugins/Auth/Tests/AWSCognitoAuthPluginUnitTests/ActionTests/CredentialStore/MockCredentialStoreBehavior.swift index d0ca03f00b..97b9201818 100644 --- a/AmplifyPlugins/Auth/Tests/AWSCognitoAuthPluginUnitTests/ActionTests/CredentialStore/MockCredentialStoreBehavior.swift +++ b/AmplifyPlugins/Auth/Tests/AWSCognitoAuthPluginUnitTests/ActionTests/CredentialStore/MockCredentialStoreBehavior.swift @@ -16,7 +16,6 @@ class MockKeychainStoreBehavior: KeychainStoreBehavior { let data: String let removeAllHandler: VoidHandler? - let mockKey: String = "mockKey" init(data: String, removeAllHandler: VoidHandler? = nil) { @@ -42,5 +41,4 @@ class MockKeychainStoreBehavior: KeychainStoreBehavior { func _removeAll() throws { removeAllHandler?() } - }