Skip to content

Commit

Permalink
vimodoro: fix style according to reviewdog
Browse files Browse the repository at this point in the history
Mainly, add the `abort` attribute and make the == comparison case
sensitive

Signed-off-by: Christian Brabandt <cb@256bit.org>
  • Loading branch information
chrisbra committed Oct 11, 2023
1 parent 4757756 commit 0adefd0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions autoload/airline/extensions/vimodoro.vim
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ if !exists(':RTM')
finish
endif

function! airline#extensions#vimodoro#apply(...)
function! airline#extensions#vimodoro#apply(...) abort
if exists('t:vimodoro')
if &ft == 'vimodoro'
if &ft ==# 'vimodoro'
if exists(':PomodoroStatus')
call airline#extensions#apply_left_override('vimodoro', '%{PomodoroStatus(1)}')
else
Expand All @@ -20,6 +20,6 @@ function! airline#extensions#vimodoro#apply(...)
endif
endfunction

function! airline#extensions#vimodoro#init(ext)
function! airline#extensions#vimodoro#init(ext) abort
call a:ext.add_statusline_func('airline#extensions#vimodoro#apply')
endfunction

0 comments on commit 0adefd0

Please sign in to comment.