@@ -874,7 +874,7 @@ static const char kErrorMessageNoRegistrationToken[] =
874
874
" to false." ;
875
875
876
876
static const char kErrorMessageSubscriptionUnknown [] =
877
- " Cannot update subscription for unknown reason." ;
877
+ " Cannot update subscription for unknown reason." ;
878
878
879
879
Future<void > Subscribe (const char * topic) {
880
880
FIREBASE_ASSERT_MESSAGE_RETURN (Future<void >(), internal::IsInitialized (),
@@ -891,8 +891,9 @@ Future<void> Subscribe(const char* topic) {
891
891
} else if (g_pending_subscriptions) {
892
892
g_pending_subscriptions->push_back (PendingTopic (topic, handle));
893
893
} 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.
896
897
api->Complete (handle, kErrorUnknown , kErrorMessageSubscriptionUnknown );
897
898
}
898
899
return MakeFuture (api, handle);
@@ -920,8 +921,9 @@ Future<void> Unsubscribe(const char* topic) {
920
921
} else if (g_pending_unsubscriptions) {
921
922
g_pending_unsubscriptions->push_back (PendingTopic (topic, handle));
922
923
} 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.
925
927
api->Complete (handle, kErrorUnknown , kErrorMessageSubscriptionUnknown );
926
928
}
927
929
return MakeFuture (api, handle);
0 commit comments