From 9191750b5b1f88b1e6e632b70caeff3d01d9ea78 Mon Sep 17 00:00:00 2001 From: w0rp Date: Thu, 12 Jan 2017 12:57:07 +0000 Subject: Fix #175 - Fix the error types for rubocop --- ale_linters/ruby/rubocop.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ale_linters/ruby/rubocop.vim') diff --git a/ale_linters/ruby/rubocop.vim b/ale_linters/ruby/rubocop.vim index a7ed1f99..72007016 100644 --- a/ale_linters/ruby/rubocop.vim +++ b/ale_linters/ruby/rubocop.vim @@ -26,7 +26,7 @@ function! ale_linters#ruby#rubocop#Handle(buffer, lines) \ 'vcol': 0, \ 'col': l:match[2] + 0, \ 'text': l:text, - \ 'type': l:type ==# 'C' ? 'E' : 'W', + \ 'type': index(['C', 'E'], l:type) != -1 ? 'E' : 'W', \ 'nr': -1, \}) endfor -- cgit v1.2.3