Ban use of ==# or ==? in the codebase, and prefer is# or is? instead

This commit is contained in:
w0rp committed 2017-08-08 08:39:13 +01:00
1 parent 5010ddc28f
commit a535d07f28
61 files changed
+158 -154

No files matched your search

+1 -1
View File
@@ -28,7 +28,7 @@ function! ale_linters#tcl#nagelfar#Handle(buffer, lines) abort
for l:match in ale#util#GetMatches(a:lines, l:pattern)
call add(l:output, {
\ 'lnum': l:match[1] + 0,
\ 'type': l:match[2] ==# 'N' ? 'W' : l:match[2],
\ 'type': l:match[2] is# 'N' ? 'W' : l:match[2],
\ 'text': l:match[3],
\})
endfor