mirror of
https://github.com/ash-project/igniter.git
synced 2024-09-20 05:22:52 +12:00
improvement: improve marshalling of spitfire env to macro env
Some checks failed
CI / ash-ci (push) Has been cancelled
Some checks failed
CI / ash-ci (push) Has been cancelled
This commit is contained in:
parent
afbcb3cd1a
commit
019add50de
1 changed files with 1 additions and 2 deletions
|
@ -543,8 +543,7 @@ defmodule Igniter.Code.Common do
|
||||||
|> Spitfire.Env.expand("file.ex")
|
|> Spitfire.Env.expand("file.ex")
|
||||||
|> elem(3)
|
|> elem(3)
|
||||||
|> then(fn value ->
|
|> then(fn value ->
|
||||||
# makes dialyzer happy?
|
{:ok, struct(Macro.Env, value)}
|
||||||
{:ok, Map.take(value, Map.keys(%Macro.Env{}))}
|
|
||||||
end)
|
end)
|
||||||
rescue
|
rescue
|
||||||
_e ->
|
_e ->
|
||||||
|
|
Loading…
Reference in a new issue