changeset 116:be8d47e88ab1

ctags: use empty() instead of comparing with ""
author Ilya Tumaykin <itumaykin@gmail.com>
date Thu, 25 Feb 2016 02:02:03 +0300
parents bc6ef3d0b84f
children df3b0ca48013
files autoload/gutentags/ctags.vim
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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