mirror of
https://github.com/airblade/vim-gitgutter.git
synced 2025-11-09 12:03:48 -05:00
Invert boolean conditions for clarity.
This commit is contained in:
@@ -147,9 +147,12 @@ endfunction
|
|||||||
|
|
||||||
function! s:setup_path(bufnr, continuation)
|
function! s:setup_path(bufnr, continuation)
|
||||||
let p = gitgutter#utility#repo_path(a:bufnr, 0)
|
let p = gitgutter#utility#repo_path(a:bufnr, 0)
|
||||||
if type(p) != s:t_string || empty(p)
|
|
||||||
return gitgutter#utility#set_repo_path(a:bufnr, a:continuation)
|
if type(p) == s:t_string && !empty(p) " if path is known
|
||||||
|
return
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
return gitgutter#utility#set_repo_path(a:bufnr, a:continuation)
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
function! s:has_fresh_changes(bufnr) abort
|
function! s:has_fresh_changes(bufnr) abort
|
||||||
|
|||||||
Reference in New Issue
Block a user