Switch to v:t_ variables for type checks

This commit is contained in:
w0rp
2018-07-25 01:27:28 +01:00
parent 9f8c37e17c
commit 06132954b1
17 changed files with 84 additions and 62 deletions

View File

@@ -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