# HG changeset patch # User Ilya Tumaykin # Date 1456354923 -10800 # Node ID be8d47e88ab11603d24351b116f0201cc32de05c # Parent bc6ef3d0b84f3b8676272d095a14d89583357021 ctags: use empty() instead of comparing with "" diff -r bc6ef3d0b84f -r be8d47e88ab1 autoload/gutentags/ctags.vim --- a/autoload/gutentags/ctags.vim Thu Feb 25 01:59:47 2016 +0300 +++ b/autoload/gutentags/ctags.vim Thu Feb 25 02:02:03 2016 +0300 @@ -64,7 +64,7 @@ endif endif - if g:gutentags_cache_dir == "" + if empty(g:gutentags_cache_dir) " If we don't use the cache directory, let's just use the tag filename " as specified by the user, and change the working directory to the " project root. @@ -164,7 +164,7 @@ endfunction function! s:process_options_file(proj_dir, path) abort - if g:gutentags_cache_dir == "" + if empty(g:gutentags_cache_dir) " If we're not using a cache directory to store tag files, we can " use the options file straight away. return a:path