Skip to content

Commit 4b087b1

Browse files
yaroluchkoharsh62
authored andcommitted
Style fixes
1 parent 7523001 commit 4b087b1

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

AmplifyPlugins/Auth/Sources/AWSCognitoAuthPlugin/CredentialStorage/AWSCognitoAuthCredentialStore.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ struct AWSCognitoAuthCredentialStore {
5555
let oldAccessGroup = retrieveStoredAccessGroup()
5656
if migrateKeychainItemsOfUserSession {
5757
try? migrateKeychainItemsToAccessGroup()
58-
} else if oldAccessGroup == nil && oldAccessGroup != accessGroup{
58+
} else if oldAccessGroup == nil && oldAccessGroup != accessGroup {
5959
try? KeychainStore(service: service)._removeAll()
6060
}
6161

AmplifyPlugins/Auth/Tests/AWSCognitoAuthPluginUnitTests/ActionTests/CredentialStore/MockCredentialStoreBehavior.swift

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ class MockKeychainStoreBehavior: KeychainStoreBehavior {
1616

1717
let data: String
1818
let removeAllHandler: VoidHandler?
19-
let mockKey: String = "mockKey"
2019

2120
init(data: String,
2221
removeAllHandler: VoidHandler? = nil) {
@@ -42,5 +41,4 @@ class MockKeychainStoreBehavior: KeychainStoreBehavior {
4241
func _removeAll() throws {
4342
removeAllHandler?()
4443
}
45-
4644
}

0 commit comments

Comments
 (0)