Fix linting issues

This commit is contained in:
Glavin Wiechert 2017-04-10 03:05:03 -03:00
parent 462447cad3
commit 1982d7f405
1 changed files with 2 additions and 2 deletions

View File

@ -146,7 +146,7 @@ module.exports = class Beautifiers extends EventEmitter
getLanguages : (grammar, filePath) -> getLanguages : (grammar, filePath) ->
# Get language # Get language
fileExtension = @getExtension(filePath) fileExtension = @getExtension(filePath)
if fileExtension if fileExtension
languages = @languages.getLanguages({grammar, extension: fileExtension}) languages = @languages.getLanguages({grammar, extension: fileExtension})
@ -256,7 +256,7 @@ module.exports = class Beautifiers extends EventEmitter
language = @getLanguage(grammar, filePath) language = @getLanguage(grammar, filePath)
# Check if unsupported language # Check if unsupported language
if !language if !language
unsupportedGrammar = true unsupportedGrammar = true
logger.verbose('Unsupported language') logger.verbose('Unsupported language')