Skip to content

Commit

Permalink
fix: handle errors from tokenizer on elixir 1.13+
Browse files Browse the repository at this point in the history
  • Loading branch information
v0idpwn committed Nov 17, 2021
1 parent fdf7b41 commit 6516e19
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/credo/code.ex
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,9 @@ defmodule Credo.Code do
# Elixir >= 1.13
{:ok, _, _, _, tokens} ->
tokens

{:error, _, _, _, tokens} ->
tokens
end
end

Expand Down

0 comments on commit 6516e19

Please sign in to comment.