summaryrefslogtreecommitdiffstats
path: root/webapp/utils/syntax_hightlighting.jsx
diff options
context:
space:
mode:
authorChristopher Speller <crspeller@gmail.com>2016-09-23 12:29:54 -0400
committerGitHub <noreply@github.com>2016-09-23 12:29:54 -0400
commit93f2b6a83302ceef5c98be4fb696840608ad3bc3 (patch)
tree89e86c5983058189f032c817573bfd945491b4e7 /webapp/utils/syntax_hightlighting.jsx
parent214f9c13a261064733c23d762fa521444fbd7a9c (diff)
downloadchat-93f2b6a83302ceef5c98be4fb696840608ad3bc3.tar.gz
chat-93f2b6a83302ceef5c98be4fb696840608ad3bc3.tar.bz2
chat-93f2b6a83302ceef5c98be4fb696840608ad3bc3.zip
Updating ESLint (#4085)
Diffstat (limited to 'webapp/utils/syntax_hightlighting.jsx')
-rw-r--r--webapp/utils/syntax_hightlighting.jsx2
1 files changed, 1 insertions, 1 deletions
diff --git a/webapp/utils/syntax_hightlighting.jsx b/webapp/utils/syntax_hightlighting.jsx
index 4146c43c5..4db6d11e3 100644
--- a/webapp/utils/syntax_hightlighting.jsx
+++ b/webapp/utils/syntax_hightlighting.jsx
@@ -152,7 +152,7 @@ export function getLanguageFromFilename(filename) {
}
export function canHighlight(language) {
- return !!HighlightedLanguages[language.toLowerCase()];
+ return Boolean(HighlightedLanguages[language.toLowerCase()]);
}
export function getLanguageName(language) {