Skip to content

Commit 642c88d

Browse files
committed
chore: tweak code
1 parent 1416d15 commit 642c88d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

AVOS/Sources/Foundation/Leaderboard/LCLeaderboard.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -128,14 +128,14 @@ + (void)deleteCurrentUserStatistics:(NSArray<NSString *> *)statisticNames
128128
if (![LCUser currentUser].sessionToken) {
129129
NSError *error = LCError(LCErrorInternalErrorCodeInconsistency, @"Please login first.", nil);
130130
dispatch_async(dispatch_get_main_queue(), ^{
131-
callback(nil, error);
131+
callback(false, error);
132132
});
133133
return;
134134
}
135135
if (!statisticNames || statisticNames.count == 0) {
136136
NSError *error = LCError(LCErrorInternalErrorCodeInconsistency, @"Parameter `statisticNames` invalid.", nil);
137137
dispatch_async(dispatch_get_main_queue(), ^{
138-
callback(nil, error);
138+
callback(false, error);
139139
});
140140
return;
141141
}

0 commit comments

Comments
 (0)