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)

3 Branch
enhancement

Tracking

(Not tracked)

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.
Product: Testing → Firefox Build System
Version: Version 3 → 3 Branch
Product: Firefox Build System → Developer Infrastructure
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.