use empty function instead of comparing to empty string

This commit is contained in:
Alan Hamlett 2016-04-20 10:10:44 +02:00
parent f25495fee7
commit a71660899e
1 changed files with 2 additions and 2 deletions

View File

@ -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