Closed
Bug 1806859
Opened 2 years ago
Closed 2 years ago
cleanup fallback flag logic
Categories
(Conduit :: moz-phab, task)
Conduit
moz-phab
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: sheehan, Assigned: sheehan)
Details
Attachments
(1 file)
And add tests for the fallback behaviour.
| Assignee | ||
Comment 1•2 years ago
|
||
Right now we set a fallback flag to False, check
a set of conditions for fallback, and if they are
met we set the flag to True and then take some
further action down the line.
Instead, move the fallback checking into a function
and store the result of that function as fallback.
Then check the value of fallback where needed,
avoiding the need to set the flag to False in
the first place.
With the fallback behaviour in a separate function we can
also expand the conditions to make the behaviour more
readable, and add a test.
| Assignee | ||
Updated•2 years ago
|
Status: NEW → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•