Browse Source

fix: don’t overwrite a variable name

tags/microformats2-0.0.2
Christian Kruse 5 years ago
parent
commit
0e2d0c74b7
1 changed files with 3 additions and 3 deletions
  1. +3
    -3
      lib/items.ex

+ 3
- 3
lib/items.ex View File

@@ -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


Loading…
Cancel
Save