Skip to content

Commit

Permalink
Fix initializing builtin commands twice
Browse files Browse the repository at this point in the history
The builtin command where initialized in put_builtin_command/3 which
then called put_command/4, which initialized them again.
  • Loading branch information
rrrene committed Feb 6, 2024
1 parent ce25289 commit 90ba7b2
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions lib/credo/execution.ex
Original file line number Diff line number Diff line change
Expand Up @@ -769,9 +769,7 @@ defmodule Credo.Execution do

@doc false
defp put_builtin_command(exec, name, command_mod) do
exec
|> command_mod.init()
|> put_command(Credo, name, command_mod)
put_command(exec, Credo, name, command_mod)
end

@doc ~S"""
Expand Down

0 comments on commit 90ba7b2

Please sign in to comment.