From a535d07f2897d36dad3b22d28c1c6cd16b7e385e Mon Sep 17 00:00:00 2001 From: w0rp Date: Tue, 8 Aug 2017 08:39:13 +0100 Subject: =?UTF-8?q?Ban=20use=20of=20=3D=3D#=20or=20=3D=3D=3F=20in=20the=20?= =?UTF-8?q?codebase,=20and=20prefer=20is#=20or=20is=3F=20instead?= --- ale_linters/elm/make.vim | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'ale_linters/elm/make.vim') 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 \}) -- cgit v1.2.3