From 3ec81c5707fe7399d39c7bd0c318f0ff4b86a7a9 Mon Sep 17 00:00:00 2001 From: mbilker Date: Wed, 27 Jan 2016 11:04:56 -0500 Subject: [PATCH] fix(spellchecker): broken array check logic for en_US default --- src/nylas-spellchecker.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/nylas-spellchecker.coffee b/src/nylas-spellchecker.coffee index 59f410373..16caf35f9 100644 --- a/src/nylas-spellchecker.coffee +++ b/src/nylas-spellchecker.coffee @@ -76,7 +76,7 @@ class NylasSpellchecker getAvailableDictionaries: -> if process.platform is 'linux' arr = spellchecker.getAvailableDictionaries() - if not "en_US" in arr + if "en_US" not in arr arr.push('en_US') # Installed by default in node-spellchecker's vendor directory arr else