diff options
author | w0rp <devw0rp@gmail.com> | 2017-08-08 08:39:13 +0100 |
---|---|---|
committer | w0rp <devw0rp@gmail.com> | 2017-08-08 08:39:13 +0100 |
commit | a535d07f2897d36dad3b22d28c1c6cd16b7e385e (patch) | |
tree | d32ef7e2261be0a1542fb39f1978b90e6f59a520 /autoload/ale.vim | |
parent | 5010ddc28fdced941925563bbc55f9219dfa4267 (diff) | |
download | ale-a535d07f2897d36dad3b22d28c1c6cd16b7e385e.zip |
Ban use of ==# or ==? in the codebase, and prefer is# or is? instead
Diffstat (limited to 'autoload/ale.vim')
-rw-r--r-- | autoload/ale.vim | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/autoload/ale.vim b/autoload/ale.vim index aba3fda1..55125a04 100644 --- a/autoload/ale.vim +++ b/autoload/ale.vim @@ -50,7 +50,7 @@ function! ale#Queue(delay, ...) abort " Remember that we want to check files for this buffer. " We will remember this until we finally run the linters, via any event. - if l:linting_flag ==# 'lint_file' + if l:linting_flag is# 'lint_file' let s:should_lint_file_for_buffer[bufnr('%')] = 1 endif @@ -157,7 +157,7 @@ endfunction " Escape a string suitably for each platform. " shellescape does not work on Windows. function! ale#Escape(str) abort - if fnamemodify(&shell, ':t') ==? 'cmd.exe' + if fnamemodify(&shell, ':t') is? 'cmd.exe' " If the string contains spaces, it will be surrounded by quotes. " Otherwise, special characters will be escaped with carets (^). return substitute( |