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 /ale_linters/javascript | |
parent | 5010ddc28fdced941925563bbc55f9219dfa4267 (diff) | |
download | ale-a535d07f2897d36dad3b22d28c1c6cd16b7e385e.zip |
Ban use of ==# or ==? in the codebase, and prefer is# or is? instead
Diffstat (limited to 'ale_linters/javascript')
-rw-r--r-- | ale_linters/javascript/flow.vim | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/ale_linters/javascript/flow.vim b/ale_linters/javascript/flow.vim index f3e5deff..0dd64535 100644 --- a/ale_linters/javascript/flow.vim +++ b/ale_linters/javascript/flow.vim @@ -46,7 +46,7 @@ function! s:GetJSONLines(lines) abort let l:start_index = 0 for l:line in a:lines - if l:line[:0] ==# '{' + if l:line[:0] is# '{' break endif @@ -77,13 +77,13 @@ function! ale_linters#javascript#flow#Handle(buffer, lines) abort " In certain cases, `l:message.loc.source` points to a different path " than the buffer one, thus we skip this loc information too. if has_key(l:message, 'loc') - \&& l:line ==# 0 + \&& l:line is# 0 \&& ale#path#IsBufferPath(a:buffer, l:message.loc.source) let l:line = l:message.loc.start.line + 0 let l:col = l:message.loc.start.column + 0 endif - if l:text ==# '' + if l:text is# '' let l:text = l:message.descr . ':' else let l:text = l:text . ' ' . l:message.descr @@ -98,7 +98,7 @@ function! ale_linters#javascript#flow#Handle(buffer, lines) abort \ 'lnum': l:line, \ 'col': l:col, \ 'text': l:text, - \ 'type': l:error.level ==# 'error' ? 'E' : 'W', + \ 'type': l:error.level is# 'error' ? 'E' : 'W', \}) endfor |