fix: mix igniter.install ash --example case clause error (#1317)

This commit is contained in:
Brian 2024-07-17 19:53:21 -03:00 committed by GitHub
parent 5c095d0e6d
commit 69c77acedd
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -33,7 +33,7 @@ defmodule Ash.Resource.Igniter do
1
),
{:ok, zipper} <- Igniter.Code.Common.move_to_do_block(zipper) do
Igniter.Code.Common.add_code(zipper, attribute)
{:ok, Igniter.Code.Common.add_code(zipper, attribute)}
else
_ ->
attributes_with_attribute = """
@ -42,7 +42,7 @@ defmodule Ash.Resource.Igniter do
end
"""
Igniter.Code.Common.add_code(zipper, attributes_with_attribute)
{:ok, Igniter.Code.Common.add_code(zipper, attributes_with_attribute)}
end
end)
end
@ -53,7 +53,7 @@ defmodule Ash.Resource.Igniter do
with {:ok, zipper} <-
Igniter.Code.Function.move_to_function_call_in_current_scope(zipper, :actions, 1),
{:ok, zipper} <- Igniter.Code.Common.move_to_do_block(zipper) do
Igniter.Code.Common.add_code(zipper, action)
{:ok, Igniter.Code.Common.add_code(zipper, action)}
else
_ ->
actions_with_action = """
@ -62,7 +62,7 @@ defmodule Ash.Resource.Igniter do
end
"""
Igniter.Code.Common.add_code(zipper, actions_with_action)
{:ok, Igniter.Code.Common.add_code(zipper, actions_with_action)}
end
end)
end