removed unnecessary check

GitOrigin-RevId: 5b14d59c43cb1b85a63dc00f9d1293e08b284a59
This commit is contained in:
mserranom 2019-07-17 09:38:48 +00:00 committed by sharelatex
parent d1011b74c0
commit 88e0cbd293

View file

@ -17,7 +17,7 @@ module.exports = {
return res.status(422).send(JSON.stringify({ misspellings: [] }))
}
if (language && !languageCodeIsSupported(language)) {
if (!languageCodeIsSupported(language)) {
// this log statement can be changed to 'error' once projects with
// unsupported languages are removed from the DB
logger.info({ language }, 'language not supported')