Ver a proveniência

fix: don’t overwrite a variable name

pull/5/head
Christian Kruse há 5 anos
ascendente
cometimento
0e2d0c74b7
  1. 6
      lib/items.ex

6
lib/items.ex

@ -18,10 +18,10 @@ defmodule Microformats2.Items do
%{type: root_classes,
properties: %{}}) |> Microformats2.Items.ImpliedProperties.parse(root, url, doc)
children = parse(children, doc, url, [])
children_entries = parse(children, doc, url, [])
if not Microformats2.blank?(children) do
items ++ [Map.put(entry, :children, children)]
if not Microformats2.blank?(children_entries) do
items ++ [Map.put(entry, :children, children_entries)]
else
items ++ [entry]
end

Carregando…
Cancelar
Guardar