mirror of
https://github.com/ash-project/igniter.git
synced 2024-09-19 13:02:51 +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")
|
||||
|> elem(3)
|
||||
|> then(fn value ->
|
||||
# makes dialyzer happy?
|
||||
{:ok, Map.take(value, Map.keys(%Macro.Env{}))}
|
||||
{:ok, struct(Macro.Env, value)}
|
||||
end)
|
||||
rescue
|
||||
_e ->
|
||||
|
|
Loading…
Reference in a new issue