Skip to content

Commit 6c91a8f

Browse files
authored
Fix warning introduced with Xcode 12 (#6865)
1 parent 0e1ad7b commit 6c91a8f

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

FirebaseMessaging/Tests/UnitTests/FIRMessagingPendingTopicsListTest.m

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,13 +113,11 @@ - (void)testBatchSizeReductionAfterSuccessfulTopicUpdate {
113113
XCTestExpectation *batchSizeReductionExpectation =
114114
[self expectationWithDescription:@"Batch size was reduced after topic suscription"];
115115

116-
__weak id weakSelf = self;
117116
self.alwaysReadyDelegate.subscriptionHandler =
118117
^(NSString *topic, FIRMessagingTopicAction action,
119118
FIRMessagingTopicOperationCompletion completion) {
120119
// Simulate that the handler is generally called asynchronously
121120
dispatch_async(dispatch_get_main_queue(), ^{
122-
id self = weakSelf;
123121
if (action == FIRMessagingTopicActionUnsubscribe) {
124122
XCTAssertEqual(pendingTopics.numberOfBatches, 1);
125123
[batchSizeReductionExpectation fulfill];

0 commit comments

Comments
 (0)