Skip to content

Commit 005633e

Browse files
author
Cynthia Jiang
committed
address review comments
1 parent 33fa78a commit 005633e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

auth/src/ios/credential_ios.mm

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ @implementation PhoneListenerDataObjC
175175
GKLocalPlayer *_Nullable optionalLocalPlayer = [[NSClassFromString(@"GKLocalPlayer") alloc] init];
176176

177177
// Early-out if GameKit is not linked
178-
if (optionalLocalPlayer == nullptr) {
178+
if (!optionalLocalPlayer) {
179179
future_api->Complete(handle, kAuthErrorInvalidCredential,
180180
"GameCenter authentication is unavailable - missing GameKit capability.");
181181
return MakeFuture(future_api, handle);
@@ -212,7 +212,7 @@ @implementation PhoneListenerDataObjC
212212
**/
213213
GKLocalPlayer *_Nullable optionalLocalPlayer = [[NSClassFromString(@"GKLocalPlayer") alloc] init];
214214
// If the GameKit Framework isn't linked - early out.
215-
if (optionalLocalPlayer == nullptr) {
215+
if (!optionalLocalPlayer) {
216216
return false;
217217
}
218218
__weak GKLocalPlayer *localPlayer = [[optionalLocalPlayer class] localPlayer];

0 commit comments

Comments
 (0)