Skip to content
Snippets Groups Projects
Commit 2b51bcab authored by Diego E. Moreno's avatar Diego E. Moreno
Browse files

Bug 1805100 - Remove "else if" after interruptions of control flow. r=sylvestre

parent a2157517
No related branches found
No related tags found
No related merge requests found
......@@ -329,9 +329,13 @@ nsIURI* nsChromeRegistryChrome::GetBaseURIFromPackage(
nsAutoCString appLocale;
LocaleService::GetInstance()->GetAppLocaleAsLangTag(appLocale);
return entry->locales.GetBase(appLocale, nsProviderArray::LOCALE);
} else if (aProvider.EqualsLiteral("skin")) {
}
if (aProvider.EqualsLiteral("skin")) {
return entry->skins.GetBase(SKIN, nsProviderArray::ANY);
} else if (aProvider.EqualsLiteral("content")) {
}
if (aProvider.EqualsLiteral("content")) {
return entry->baseURI;
}
return nullptr;
......
......@@ -116,11 +116,16 @@ nsIURI* nsChromeRegistryContent::GetBaseURIFromPackage(
if (aProvider.EqualsLiteral("locale")) {
return entry->localeBaseURI;
} else if (aProvider.EqualsLiteral("skin")) {
}
if (aProvider.EqualsLiteral("skin")) {
return entry->skinBaseURI;
} else if (aProvider.EqualsLiteral("content")) {
}
if (aProvider.EqualsLiteral("content")) {
return entry->contentBaseURI;
}
return nullptr;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment