[eslint] use-default-preference-values should handle cases of return for get*Pref calls

NEW
Unassigned

Status

Testing
Lint
P3
normal
5 months ago
5 months ago

People

(Reporter: standard8, Unassigned)

Tracking

Version 3
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

(Reporter)

Description

5 months ago
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.
You need to log in before you can comment on or make changes to this bug.