summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorw0rp <devw0rp@gmail.com>2017-07-06 10:51:05 +0100
committerw0rp <devw0rp@gmail.com>2017-07-06 10:51:05 +0100
commit5859050d293787ba3676517b16a9ecd141f3c002 (patch)
tree23bbd871a9542ca0a04c2d03b980e55836f169c3
parentaf02fb5183b3cf26d3a8a83ef6339d3065aae965 (diff)
downloadale-5859050d293787ba3676517b16a9ecd141f3c002.zip
Fix some bad indentation
-rw-r--r--autoload/ale/statusline.vim16
1 files changed, 8 insertions, 8 deletions
diff --git a/autoload/ale/statusline.vim b/autoload/ale/statusline.vim
index 673748ca..afc27b3b 100644
--- a/autoload/ale/statusline.vim
+++ b/autoload/ale/statusline.vim
@@ -50,14 +50,14 @@ endfunction
" Get the counts for the buffer, and update the counts if needed.
function! s:GetCounts(buffer) abort
-if !exists('g:ale_buffer_info') || !has_key(g:ale_buffer_info, a:buffer)
- return s:CreateCountDict()
-endif
-
-" Cache is cold, so manually ask for an update.
-if !has_key(g:ale_buffer_info[a:buffer], 'count')
- call ale#statusline#Update(a:buffer, g:ale_buffer_info[a:buffer].loclist)
-endif
+ if !exists('g:ale_buffer_info') || !has_key(g:ale_buffer_info, a:buffer)
+ return s:CreateCountDict()
+ endif
+
+ " Cache is cold, so manually ask for an update.
+ if !has_key(g:ale_buffer_info[a:buffer], 'count')
+ call ale#statusline#Update(a:buffer, g:ale_buffer_info[a:buffer].loclist)
+ endif
return g:ale_buffer_info[a:buffer].count
endfunction