mirror of
https://github.com/dense-analysis/ale.git
synced 2026-02-25 19:17:23 +08:00
Switch to v:t_ variables for type checks
This commit is contained in:
@@ -40,9 +40,9 @@ function! ale#definition#HandleLSPResponse(conn_id, response) abort
|
||||
" The result can be a Dictionary item, a List of the same, or null.
|
||||
let l:result = get(a:response, 'result', v:null)
|
||||
|
||||
if type(l:result) is type({})
|
||||
if type(l:result) is v:t_dict
|
||||
let l:result = [l:result]
|
||||
elseif type(l:result) isnot type([])
|
||||
elseif type(l:result) isnot v:t_list
|
||||
let l:result = []
|
||||
endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user