Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 0 additions & 8 deletions GoogleSignIn/Sources/GIDAuthStateMigration.m
Original file line number Diff line number Diff line change
Expand Up @@ -107,10 +107,6 @@ - (void)performDataProtectedMigrationIfNeeded {
if (authSession) {
NSError *err;
[self.keychainStore saveAuthSession:authSession error:&err];
// If we're unable to save to the keychain, return without marking migration performed.
if (err) {
return;
};
[keychainStoreLegacy removeAuthSessionWithError:nil];
}

Expand Down Expand Up @@ -138,10 +134,6 @@ - (void)performGIDMigrationIfNeededWithTokenURL:(NSURL *)tokenURL
if (authSession) {
NSError *err;
[self.keychainStore saveAuthSession:authSession error:&err];
// If we're unable to save to the keychain, return without marking migration performed.
if (err) {
return;
};
}

// Mark the migration check as having been performed.
Expand Down
2 changes: 1 addition & 1 deletion GoogleSignIn/Tests/Unit/GIDAuthStateMigrationTest.m
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ - (void)testMigrateIfNeeded_KeychainFailure_DataProtectedMigration {
callbackPath:kCallbackPath
keychainName:kKeychainName
isFreshInstall:NO];
XCTAssertNotNil([_realLegacyGTMKeychainStore retrieveAuthSessionWithError:nil]);
XCTAssertNil([_realLegacyGTMKeychainStore retrieveAuthSessionWithError:nil]);
}

#else
Expand Down