Remove unnecessary ternary

This commit is contained in:
Bryan Housel
2019-02-08 16:38:40 -05:00
parent fbe584c7ec
commit a2b140e92b

View File

@@ -135,7 +135,7 @@ export default {
// If this is the first time we are asking about this locale,
// fetch corresponding entity (if it exists), and cache it.
// If there is no such entry, cache `false` value to avoid re-requesting it.
localeSitelink = params.langCode ? ('Locale:' + params.langCode).replace(/_/g, ' ').trim() : false;
localeSitelink = ('Locale:' + params.langCode).replace(/_/g, ' ').trim();
titles.push(localeSitelink);
}