mirror of
https://github.com/ash-project/ash.git
synced 2024-09-19 13:03:02 +12:00
fix: mix igniter.install ash --example case clause error (#1317)
This commit is contained in:
parent
5c095d0e6d
commit
69c77acedd
1 changed files with 4 additions and 4 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue