mirror of
https://github.com/vim-airline/vim-airline.git
synced 2025-12-06 12:14:24 +08:00
vimodoro: fix style according to reviewdog
Mainly, add the `abort` attribute and make the == comparison case sensitive Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
@@ -8,9 +8,9 @@ if !exists(':RTM')
|
|||||||
finish
|
finish
|
||||||
endif
|
endif
|
||||||
|
|
||||||
function! airline#extensions#vimodoro#apply(...)
|
function! airline#extensions#vimodoro#apply(...) abort
|
||||||
if exists('t:vimodoro')
|
if exists('t:vimodoro')
|
||||||
if &ft == 'vimodoro'
|
if &ft ==# 'vimodoro'
|
||||||
if exists(':PomodoroStatus')
|
if exists(':PomodoroStatus')
|
||||||
call airline#extensions#apply_left_override('vimodoro', '%{PomodoroStatus(1)}')
|
call airline#extensions#apply_left_override('vimodoro', '%{PomodoroStatus(1)}')
|
||||||
else
|
else
|
||||||
@@ -20,6 +20,6 @@ function! airline#extensions#vimodoro#apply(...)
|
|||||||
endif
|
endif
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
function! airline#extensions#vimodoro#init(ext)
|
function! airline#extensions#vimodoro#init(ext) abort
|
||||||
call a:ext.add_statusline_func('airline#extensions#vimodoro#apply')
|
call a:ext.add_statusline_func('airline#extensions#vimodoro#apply')
|
||||||
endfunction
|
endfunction
|
||||||
|
|||||||
Reference in New Issue
Block a user