Page MenuHomePhabricator

[lib] Refactor keyserver reducer pt.2 - early return
ClosedPublic

Authored by inka on Nov 10 2023, 6:14 AM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Oct 28, 12:01 AM
Unknown Object (File)
Wed, Oct 23, 10:07 AM
Unknown Object (File)
Wed, Oct 23, 8:42 AM
Unknown Object (File)
Oct 11 2024, 2:20 AM
Unknown Object (File)
Sep 28 2024, 8:14 AM
Unknown Object (File)
Sep 28 2024, 3:54 AM
Unknown Object (File)
Sep 28 2024, 3:54 AM
Unknown Object (File)
Sep 28 2024, 3:54 AM
Subscribers

Details

Summary

issue: https://linear.app/comm/issue/ENG-5350/refactor-reducekeyserverstore
Now that the reducers this reducer used to call got inlined, we can early return from the keyserver reducer

Test Plan

Tested a couple of actions: queueActivityUpdatesActionType, updateDisconnectedBarActionType, updateActivityActionTypes.success, updateConnectionStatusActionType, checked that they work as expected

Diff Detail

Repository
rCOMM Comm
Branch
inka/reducers
Lint
No Lint Coverage
Unit
No Test Coverage

Event Timeline

inka requested review of this revision.Nov 10 2023, 7:02 AM
michal requested changes to this revision.Nov 14 2023, 6:17 AM
michal added inline comments.
lib/reducers/keyserver-reducer.js
67–92

Return should be after these two ifs

99

We should return after outside of for

This revision now requires changes to proceed.Nov 14 2023, 6:17 AM

Fix returns from ifs and loop

lib/reducers/keyserver-reducer.js
101–108 ↗(On Diff #33211)

I don't think that's correct

This revision is now accepted and ready to land.Nov 16 2023, 5:06 AM