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
@@ -60,7 +60,7 @@ function! ale_linters#d#dmd#Handle(buffer, lines) abort
call add(l:output, {
\ 'lnum': l:match[1],
\ 'col': l:match[2],
\ 'type': l:match[3] ==# 'Warning' ? 'W' : 'E',
\ 'type': l:match[3] is# 'Warning' ? 'W' : 'E',
\ 'text': l:match[4],
\})
endfor