Skip to content

Commit

Permalink
Bug 1440188 - Fix eslint error from adding intl/l10n to eslint. r=gan…
Browse files Browse the repository at this point in the history
…dalf

MozReview-Commit-ID: 8um44N5dZUv
  • Loading branch information
Zibi Braniecki committed Feb 22, 2018
1 parent 430e8c0 commit f022048
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions intl/l10n/Localization.jsm
Original file line number Diff line number Diff line change
Expand Up @@ -118,8 +118,6 @@ class L10nError extends Error {
* be localized into a different language - for example DevTools.
*/
function defaultGenerateMessages(resourceIds) {
const availableLocales = L10nRegistry.getAvailableLocales();

const appLocales = Services.locale.getAppLocalesAsLangTags();
return L10nRegistry.generateContexts(appLocales, resourceIds);
}
Expand Down Expand Up @@ -253,14 +251,14 @@ class Localization {
* Register weak observers on events that will trigger cache invalidation
*/
registerObservers() {
Services.obs.addObserver(this, 'intl:app-locales-changed', true);
Services.obs.addObserver(this, "intl:app-locales-changed", true);
}

/**
* Unregister observers on events that will trigger cache invalidation
*/
unregisterObservers() {
Services.obs.removeObserver(this, 'intl:app-locales-changed');
Services.obs.removeObserver(this, "intl:app-locales-changed");
}

/**
Expand Down

0 comments on commit f022048

Please sign in to comment.