From 69c77acedd61aba8675d33201b2cef63e9b9d74e Mon Sep 17 00:00:00 2001 From: Brian Date: Wed, 17 Jul 2024 19:53:21 -0300 Subject: [PATCH] fix: mix igniter.install ash --example case clause error (#1317) --- lib/ash/resource/igniter.ex | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/ash/resource/igniter.ex b/lib/ash/resource/igniter.ex index b78427d9..56a826bc 100644 --- a/lib/ash/resource/igniter.ex +++ b/lib/ash/resource/igniter.ex @@ -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