Skip to content

Commit

Permalink
Fix feature, disabling language beautification, where disabledLanguag…
Browse files Browse the repository at this point in the history
…es = null

This is only really applicable to the Spec testing,
such as by Travis CI.

Fixes #141.
  • Loading branch information
Glavin001 committed Dec 28, 2014
1 parent 974897b commit 264821c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/language-options.coffee
Expand Up @@ -157,7 +157,7 @@ module.exports =
# Beautify!
unsupportedGrammar = false
options = undefined
if atom.config.get("atom-beautify.disabledLanguages").indexOf(grammar) > - 1
if atom.config.get("atom-beautify.disabledLanguages")?.indexOf(grammar) > - 1
return beautifyCompleted(null)
switch grammar
# Treat JSON as JavaScript, because it will support comments.
Expand Down

0 comments on commit 264821c

Please sign in to comment.