fix(spellchecker): broken array check logic for en_US default

This commit is contained in:
mbilker 2016-01-27 11:04:56 -05:00
parent 878d1c0617
commit 3ec81c5707

View file

@ -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