Skip to content

Commit

Permalink
improvement: improve marshalling of spitfire env to macro env
Browse files Browse the repository at this point in the history
  • Loading branch information
zachdaniel committed Jun 15, 2024
1 parent afbcb3c commit 019add5
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/code/common.ex
Original file line number Diff line number Diff line change
Expand Up @@ -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 ->
Expand Down

0 comments on commit 019add5

Please sign in to comment.