summaryrefslogtreecommitdiff
path: root/ale_linters/elixir/credo.vim
diff options
context:
space:
mode:
Diffstat (limited to 'ale_linters/elixir/credo.vim')
-rw-r--r--ale_linters/elixir/credo.vim8
1 files changed, 1 insertions, 7 deletions
diff --git a/ale_linters/elixir/credo.vim b/ale_linters/elixir/credo.vim
index ce34f47c..46f75457 100644
--- a/ale_linters/elixir/credo.vim
+++ b/ale_linters/elixir/credo.vim
@@ -7,13 +7,7 @@ function! ale_linters#elixir#credo#Handle(buffer, lines) abort
let l:pattern = '\v:(\d+):?(\d+)?: (.): (.+)$'
let l:output = []
- for l:line in a:lines
- let l:match = matchlist(l:line, l:pattern)
-
- if len(l:match) == 0
- continue
- endif
-
+ for l:match in ale#util#GetMatches(a:lines, l:pattern)
let l:type = l:match[3]
let l:text = l:match[4]