Page MenuHomePhabricator

[lib] Refactor baseReducer
ClosedPublic

Authored by inka on Nov 16 2023, 8:13 AM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Oct 28, 12:14 AM
Unknown Object (File)
Oct 22 2024, 3:36 AM
Unknown Object (File)
Oct 20 2024, 9:13 AM
Unknown Object (File)
Oct 19 2024, 10:54 PM
Unknown Object (File)
Oct 12 2024, 2:37 AM
Unknown Object (File)
Oct 6 2024, 3:28 AM
Unknown Object (File)
Oct 5 2024, 6:49 PM
Unknown Object (File)
Sep 28 2024, 3:23 AM
Subscribers

Details

Summary

issue: https://linear.app/comm/issue/ENG-5348/refactor-basereducer
We want to check this condition for every keyserver. See D1066 for context on what this code does

Test Plan

Tested that iff not connected, the inner ifs are run

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

inka requested review of this revision.Nov 16 2023, 8:39 AM
lib/reducers/master-reducer.js
78–81 ↗(On Diff #33341)

Invert this condition and use continue to reduce indentation

Rebase, reduce indentation

This revision is now accepted and ready to land.Nov 17 2023, 8:09 AM
This revision was automatically updated to reflect the committed changes.
lib/reducers/master-reducer.js
102

For future reference, the new Flow requires an annotation here

lib/reducers/master-reducer.js
102

Actually, hmmm... I guess this isn't always required, as I'm not seeing any errors after rebasing. Sorry for the distraction!