Open
Bug 2028186
Opened 2 months ago
Updated 1 month ago
`createPrefSetter` in `NimbusGeckoUtils` is no longer nullable
Categories
(Firefox for Android :: Experimentation and Telemetry, task)
Tracking
()
NEW
People
(Reporter: olivia, Unassigned, Mentored)
References
(Blocks 1 open bug)
Details
(Keywords: good-first-bug, Whiteboard: [lang=kt])
Remove nullable ? off of fun createPrefSetter(geckoPrefState: GeckoPrefState, setType: BrowserPrefType?): SetBrowserPreference<*>? { in NimbusGeckoUtils.
Before one of the refactors, this function returned null instead of throw. It would be best to update that.
| Reporter | ||
Comment 1•1 month ago
|
||
Changes needed:
- The return type of this function should not be optional change
SetBrowserPreference<*>?-> toSetBrowserPreference<*> - The test
createPrefSetter with GeckoPrefState returns setter for various typesinNimbusGeckoUtilsTestshould have force unwrapping!!removed once the function is updated.
You need to log in
before you can comment on or make changes to this bug.
Description
•