Fix #175 - Fix the error types for rubocop

This commit is contained in:
w0rp 2017-01-12 12:57:07 +00:00
parent 9c5f092b4f
commit 9191750b5b
1 changed files with 1 additions and 1 deletions

View File

@ -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