From 95df3522a15631abc51a4295cae0ea401a8d4e1e Mon Sep 17 00:00:00 2001 From: Markus Hatvan Date: Tue, 14 Sep 2021 19:58:52 +0200 Subject: feat: add eslint-plugin-unicorn (#1936) --- src/webview/spellchecker.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/webview/spellchecker.ts') diff --git a/src/webview/spellchecker.ts b/src/webview/spellchecker.ts index 30b4ef075..d0f6663d5 100644 --- a/src/webview/spellchecker.ts +++ b/src/webview/spellchecker.ts @@ -11,7 +11,7 @@ debug('Spellchecker default locale is', defaultLocale); export function getSpellcheckerLocaleByFuzzyIdentifier(identifier: string) { const locales = Object.keys(SPELLCHECKER_LOCALES).filter((key) => key.toLocaleLowerCase() === identifier.toLowerCase() || key.split('-')[0] === identifier.toLowerCase()); - return locales.length >= 1 ? locales[0] : null; + return locales.length > 0 ? locales[0] : null; } export function switchDict(locale: string) { -- cgit v1.2.3-70-g09d2