HomePhabricator
Diffusion Comm e8adf23f4dc8

[lib] Simplify conditional logic in `wrapActionPromise:loadingInfo`

Description

[lib] Simplify conditional logic in wrapActionPromise:loadingInfo

Summary: Noticed that some of the logic here could be simplified w/ optional chaining + nullish coalescing... so made those changes

Test Plan: Close reading + flow

Reviewers: palys-swm, def-au1t, yayabosh, ashoat

Reviewed By: palys-swm, yayabosh, ashoat

Subscribers: ashoat, Adrian

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

Details

Provenance
atulAuthored on Jun 21 2022, 4:13 PM
Reviewer
tomek
Differential Revision
D4319: [lib] Simplify conditional logic in `wrapActionPromise:loadingInfo`
Parents
rCOMM3c3b3dac217f: [services][identity] subroutine for generating token and writing it to db
Branches
Loading...
Tags
Loading...