Skip to content

Commit

Permalink
Fix nil error in ConvertCliOptionsToConfig
Browse files Browse the repository at this point in the history
  • Loading branch information
rrrene committed Jan 28, 2020
1 parent 14627ca commit b862f6a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/credo/execution/task/convert_cli_options_to_config.ex
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ defmodule Credo.Execution.Task.ConvertCLIOptionsToConfig do

def error(exec, _opts) do
case Execution.get_assign(exec, "#{__MODULE__}.error") do
{:badconfig, filename, line_no, description, trigger} ->
{:badconfig, filename, line_no, description, trigger} when not is_nil(filename) ->
lines =
filename
|> File.read!()
Expand Down

0 comments on commit b862f6a

Please sign in to comment.