Skip to content
This repository was archived by the owner on Apr 4, 2023. It is now read-only.

Commit 2649e6e

Browse files
cleanup
1 parent 58d2792 commit 2649e6e

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

src/messaging/messaging.ios.ts

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -35,13 +35,12 @@ export function initFirebaseMessaging(options) {
3535
_showNotifications = options.showNotifications === undefined ? _showNotifications : !!options.showNotifications;
3636
_showNotificationsWhenInForeground = options.showNotificationsWhenInForeground === undefined ? _showNotificationsWhenInForeground : !!options.showNotificationsWhenInForeground;
3737

38-
if (options.onMessageReceivedCallback !== undefined || options.onPushTokenReceivedCallback !== undefined) {
39-
if (options.onMessageReceivedCallback !== undefined) {
40-
addOnMessageReceivedCallback(options.onMessageReceivedCallback);
41-
}
42-
if (options.onPushTokenReceivedCallback !== undefined) {
43-
addOnPushTokenReceivedCallback(options.onPushTokenReceivedCallback);
44-
}
38+
if (options.onMessageReceivedCallback !== undefined) {
39+
addOnMessageReceivedCallback(options.onMessageReceivedCallback);
40+
}
41+
42+
if (options.onPushTokenReceivedCallback !== undefined) {
43+
addOnPushTokenReceivedCallback(options.onPushTokenReceivedCallback);
4544
}
4645
}
4746

0 commit comments

Comments
 (0)