Update sqlformat.coffee

apply Glavin001's suggestion.
This commit is contained in:
Junjie Peng 2018-03-05 09:48:25 +08:00 committed by GitHub
parent 0360f81ea3
commit e9f620736c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -17,7 +17,7 @@ module.exports = class Sqlformat extends Beautifier
beautify: (text, language, options) ->
@run("sqlformat", [
@tempFile("input", text)
"--reindent" if (options.reindent? && options.reindent == true)
"--reindent" if options.reindent is true
"--indent_width=#{options.indent_size}" if options.indent_size?
"--keywords=#{options.keywords}" if (options.keywords? && options.keywords != 'unchanged')
"--identifiers=#{options.identifiers}" if (options.identifiers? && options.identifiers != 'unchanged')