mirror of
https://github.com/dense-analysis/ale.git
synced 2025-12-06 12:44:23 +08:00
Switch to v:t_ variables for type checks
This commit is contained in:
@@ -95,7 +95,7 @@ function! ale#Queue(delay, ...) abort
|
||||
throw "linting_flag must be either '' or 'lint_file'"
|
||||
endif
|
||||
|
||||
if type(l:buffer) != type(0)
|
||||
if type(l:buffer) isnot v:t_number
|
||||
throw 'buffer_number must be a Number'
|
||||
endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user