Skip to content

Commit e4ce188

Browse files
committed
Update messaging.cc
1 parent a727f90 commit e4ce188

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

messaging/src/android/cpp/messaging.cc

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -874,7 +874,7 @@ static const char kErrorMessageNoRegistrationToken[] =
874874
"to false.";
875875

876876
static const char kErrorMessageSubscriptionUnknown[] =
877-
"Cannot update subscription for unknown reason.";
877+
"Cannot update subscription for unknown reason.";
878878

879879
Future<void> Subscribe(const char* topic) {
880880
FIREBASE_ASSERT_MESSAGE_RETURN(Future<void>(), internal::IsInitialized(),
@@ -891,8 +891,9 @@ Future<void> Subscribe(const char* topic) {
891891
} else if (g_pending_subscriptions) {
892892
g_pending_subscriptions->push_back(PendingTopic(topic, handle));
893893
} else {
894-
// This shouldn't happen, since g_pending_subscriptions should be valid if here,
895-
// but handle it to prevent abandoning the Future in case something happens.
894+
// This shouldn't happen, since g_pending_subscriptions should be valid if
895+
// here, but handle it to prevent abandoning the Future in case something
896+
// happens.
896897
api->Complete(handle, kErrorUnknown, kErrorMessageSubscriptionUnknown);
897898
}
898899
return MakeFuture(api, handle);
@@ -920,8 +921,9 @@ Future<void> Unsubscribe(const char* topic) {
920921
} else if (g_pending_unsubscriptions) {
921922
g_pending_unsubscriptions->push_back(PendingTopic(topic, handle));
922923
} else {
923-
// This shouldn't happen, since g_pending_unsubscriptions should be valid if here,
924-
// but handle it to prevent abandoning the Future in case something happens.
924+
// This shouldn't happen, since g_pending_unsubscriptions should be valid if
925+
// here, but handle it to prevent abandoning the Future in case something
926+
// happens.
925927
api->Complete(handle, kErrorUnknown, kErrorMessageSubscriptionUnknown);
926928
}
927929
return MakeFuture(api, handle);

0 commit comments

Comments
 (0)