Skip to content

Commit

Permalink
chore: fix credo warning
Browse files Browse the repository at this point in the history
  • Loading branch information
zachdaniel committed Feb 11, 2025
1 parent 543fbdd commit 277248a
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions lib/igniter/project/deps.ex
Original file line number Diff line number Diff line change
Expand Up @@ -237,10 +237,11 @@ defmodule Igniter.Project.Deps do
{:ok, zipper} <- Igniter.Code.Function.move_to_defp(zipper, :deps, 0) do
case igniter.assigns[:igniter_exs][:deps_location] || :last_list_literal do
{m, f, a} ->
with {:ok, zipper} <- apply(m, f, [a] ++ [igniter, zipper]) do
add_to_deps_list(zipper, name, quoted, opts)
else
_ ->
case apply(m, f, [a] ++ [igniter, zipper]) do
{:ok, zipper} ->
add_to_deps_list(zipper, name, quoted, opts)

:error ->
{error_tag,
"""
Could not add dependency #{inspect({name, version})}
Expand Down

0 comments on commit 277248a

Please sign in to comment.