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:
Christian Brabandt 2023-10-11 13:13:15 +02:00
parent 4757756ae0
commit 0adefd0c42
No known key found for this signature in database
GPG Key ID: F3F92DA383FDDE09
1 changed files with 3 additions and 3 deletions

View File

@ -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
@ -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