mirror of
https://github.com/dense-analysis/ale.git
synced 2026-05-19 23:09:58 +08:00
Ban use of ==# or ==? in the codebase, and prefer is# or is? instead
This commit is contained in:
@@ -26,15 +26,15 @@ function! ale#statusline#Update(buffer, loclist) abort
|
||||
let l:count.total = len(a:loclist)
|
||||
|
||||
for l:entry in a:loclist
|
||||
if l:entry.type ==# 'W'
|
||||
if get(l:entry, 'sub_type', '') ==# 'style'
|
||||
if l:entry.type is# 'W'
|
||||
if get(l:entry, 'sub_type', '') is# 'style'
|
||||
let l:count.style_warning += 1
|
||||
else
|
||||
let l:count.warning += 1
|
||||
endif
|
||||
elseif l:entry.type ==# 'I'
|
||||
elseif l:entry.type is# 'I'
|
||||
let l:count.info += 1
|
||||
elseif get(l:entry, 'sub_type', '') ==# 'style'
|
||||
elseif get(l:entry, 'sub_type', '') is# 'style'
|
||||
let l:count.style_error += 1
|
||||
else
|
||||
let l:count.error += 1
|
||||
|
||||
Reference in New Issue
Block a user