Open
Bug 1395186
Opened 7 years ago
Updated 2 years ago
[eslint] use-default-preference-values should handle cases of return for get*Pref calls
Categories
(Developer Infrastructure :: Lint and Formatting, enhancement, P3)
Tracking
(Not tracked)
NEW
People
(Reporter: standard8, Unassigned)
References
Details
Currently use-default-preference-values doesn't flag up cases such as:
```
try {
return Services.prefs.getBoolPref("browser.places.useAsyncTransactions");
} catch (ex) { }
return false;
```
We should extend it to cover those and fix the current instances that are broken by it.
Updated•7 years ago
|
Product: Testing → Firefox Build System
Updated•6 years ago
|
Version: Version 3 → 3 Branch
Updated•2 years ago
|
Product: Firefox Build System → Developer Infrastructure
Updated•2 years ago
|
Severity: normal → S3
You need to log in
before you can comment on or make changes to this bug.
Description
•