From 90ba7b2fe58c37b5e6f1e67b10c61e9630a1bf48 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20F=C3=B6hring?= Date: Tue, 6 Feb 2024 14:10:58 +0100 Subject: [PATCH] Fix initializing builtin commands twice The builtin command where initialized in put_builtin_command/3 which then called put_command/4, which initialized them again. --- lib/credo/execution.ex | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lib/credo/execution.ex b/lib/credo/execution.ex index 005d62d42..c8d3e18f6 100644 --- a/lib/credo/execution.ex +++ b/lib/credo/execution.ex @@ -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"""