Ban use of ==# or ==? in the codebase, and prefer is# or is? instead
This commit is contained in:
parent
5010ddc28f
commit
a535d07f28
61 changed files with 158 additions and 154 deletions
|
@ -5,9 +5,9 @@ function! ale_linters#haskell#hlint#Handle(buffer, lines) abort
|
|||
let l:output = []
|
||||
|
||||
for l:error in ale#util#FuzzyJSONDecode(a:lines, [])
|
||||
if l:error.severity ==# 'Error'
|
||||
if l:error.severity is# 'Error'
|
||||
let l:type = 'E'
|
||||
elseif l:error.severity ==# 'Suggestion'
|
||||
elseif l:error.severity is# 'Suggestion'
|
||||
let l:type = 'I'
|
||||
else
|
||||
let l:type = 'W'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue