mirror of
https://github.com/dense-analysis/ale.git
synced 2025-12-16 01:07:06 +08:00
Switch to v:t_ variables for type checks
This commit is contained in:
@@ -136,7 +136,7 @@ function! ale_linters#elm#make#ParseMessage(message) abort
|
||||
endfunction
|
||||
|
||||
function! ale_linters#elm#make#ParseMessageItem(item) abort
|
||||
if type(a:item) == type('')
|
||||
if type(a:item) is v:t_string
|
||||
return a:item
|
||||
else
|
||||
return a:item.string
|
||||
|
||||
Reference in New Issue
Block a user