ソースを参照

removed unnecessary check

GitOrigin-RevId: 5b14d59c43cb1b85a63dc00f9d1293e08b284a59
mserranom 7 年 前
親
コミット
88e0cbd293

+ 1 - 1
services/web/app/src/Features/Spelling/SpellingController.js

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