From a71660899e7fff6f3b0fbd7dfcd53c8558bead90 Mon Sep 17 00:00:00 2001 From: Alan Hamlett Date: Wed, 20 Apr 2016 10:10:44 +0200 Subject: [PATCH] use empty function instead of comparing to empty string --- plugin/wakatime.vim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugin/wakatime.vim b/plugin/wakatime.vim index 3b55bbe..6edb728 100644 --- a/plugin/wakatime.vim +++ b/plugin/wakatime.vim @@ -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