Page MenuHomePhabricator

[lib] Refactor baseReducer
ClosedPublic

Authored by inka on Nov 16 2023, 8:13 AM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Jul 2, 4:44 AM
Unknown Object (File)
Sun, Jun 30, 2:25 PM
Unknown Object (File)
Fri, Jun 28, 8:07 AM
Unknown Object (File)
Wed, Jun 26, 4:39 PM
Unknown Object (File)
Sun, Jun 23, 1:27 AM
Unknown Object (File)
Wed, Jun 12, 5:43 AM
Unknown Object (File)
Fri, Jun 7, 5:18 AM
Unknown Object (File)
Fri, Jun 7, 5:18 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!