use empty function instead of comparing to empty string
This commit is contained in:
parent
f25495fee7
commit
a71660899e
1 changed files with 2 additions and 2 deletions
|
@ -135,10 +135,10 @@ let s:VERSION = '4.0.10'
|
|||
if a:is_write
|
||||
let cmd = cmd + ['--write']
|
||||
endif
|
||||
if &syntax != ''
|
||||
if !empty(&syntax)
|
||||
let cmd = cmd + ['--alternate-language', &syntax]
|
||||
else
|
||||
if &filetype != ''
|
||||
if !empty(&filetype)
|
||||
let cmd = cmd + ['--alternate-language', &filetype]
|
||||
endif
|
||||
endif
|
||||
|
|
Loading…
Reference in a new issue