Skip to content

Commit

Permalink
Remove meta information from the pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
Janix4000 committed Nov 8, 2022
1 parent 9445061 commit aa7ddd5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/unifex/specs.ex
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ defmodule Unifex.Specs do
config
|> Enum.chunk_every(2, 1)
|> Enum.flat_map(fn
[doc: doc, function: function] ->
[doc: {_meta, doc}, function: function] ->
[{function, doc}]

[{:doc, {meta, _doc}}, _not_a_function] ->
Expand All @@ -115,12 +115,12 @@ defmodule Unifex.Specs do
[]

[_prev_term, function: function] ->
[{function, {nil, false}}]
[{function, false}]

_else ->
[]
end)
|> Keyword.new(fn {{name, _args, _results}, {_meta, doc}} -> {name, doc} end)
|> Keyword.new(fn {{name, _args, _results}, doc} -> {name, doc} end)
end

# Returns a clean __ENV__ with proper functions/macros imported. Useful for invoking
Expand Down

0 comments on commit aa7ddd5

Please sign in to comment.