HomePhabricator
Diffusion Comm 8be7623397eb

[lib] Don't return a promise from ignorePromiseRejections

Description

[lib] Don't return a promise from ignorePromiseRejections

Summary:
This diff is a no-op since no callsite actually pays attention to the result here.

The reason we need this is to avoid having to prefix every callsite with void. Otherwise, the unused-promise Flow lint that gets enabled in a following diff would fire at each callsite.

This diff avoids that by prefixing with void inside the definition of ignorePromiseRejections.

Depends on D10159

Test Plan: Flow

Reviewers: michal

Reviewed By: michal

Subscribers: tomek

Differential Revision: https://phab.comm.dev/D10160

Details

Provenance
ashoatAuthored on Dec 1 2023, 1:25 PM
Reviewer
michal
Differential Revision
D10160: [lib] Don't return a promise from ignorePromiseRejections
Parents
rCOMM30126e729887: [lib] Get rid of switchMemberAdminRoleInThread
Branches
Unknown
Tags
Unknown