Skip to content

Commit d29dfc8

Browse files
committed
fix(messaging): correctly pass options in modular getToken/deleteToken
previously they were specifically *not* passed if they existed due to an unexpected inverted conditional
1 parent 16e7100 commit d29dfc8

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

packages/messaging/lib/modular/index.js

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,6 @@ export function getMessaging(app) {
3333
* @returns {Promise<void>}
3434
*/
3535
export function deleteToken(messaging, tokenOptions) {
36-
if (tokenOptions != null) {
37-
return messaging.deleteToken();
38-
}
39-
4036
return messaging.deleteToken(tokenOptions);
4137
}
4238

@@ -47,10 +43,6 @@ export function deleteToken(messaging, tokenOptions) {
4743
* @returns {Promise<string>}
4844
*/
4945
export function getToken(messaging, options) {
50-
if (options != null) {
51-
return messaging.getToken();
52-
}
53-
5446
return messaging.getToken(options);
5547
}
5648

0 commit comments

Comments
 (0)