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/elm | |
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/elm')
-rw-r--r-- | ale_linters/elm/make.vim | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/ale_linters/elm/make.vim b/ale_linters/elm/make.vim index 0a570ff6..5f7705b8 100644 --- a/ale_linters/elm/make.vim +++ b/ale_linters/elm/make.vim @@ -7,16 +7,16 @@ function! ale_linters#elm#make#Handle(buffer, lines) abort let l:temp_dir = l:is_windows ? $TMP : $TMPDIR let l:unparsed_lines = [] for l:line in a:lines - if l:line[0] ==# '[' + if l:line[0] is# '[' let l:errors = json_decode(l:line) for l:error in l:errors " Check if file is from the temp directory. " Filters out any errors not related to the buffer. if l:is_windows - let l:file_is_buffer = l:error.file[0:len(l:temp_dir) - 1] ==? l:temp_dir + let l:file_is_buffer = l:error.file[0:len(l:temp_dir) - 1] is? l:temp_dir else - let l:file_is_buffer = l:error.file[0:len(l:temp_dir) - 1] ==# l:temp_dir + let l:file_is_buffer = l:error.file[0:len(l:temp_dir) - 1] is# l:temp_dir endif if l:file_is_buffer @@ -25,7 +25,7 @@ function! ale_linters#elm#make#Handle(buffer, lines) abort \ 'col': l:error.region.start.column, \ 'end_lnum': l:error.region.end.line, \ 'end_col': l:error.region.end.column, - \ 'type': (l:error.type ==? 'error') ? 'E' : 'W', + \ 'type': (l:error.type is? 'error') ? 'E' : 'W', \ 'text': l:error.overview, \ 'detail': l:error.overview . "\n\n" . l:error.details \}) |