Skip to content

Commit

Permalink
Unused line
Browse files Browse the repository at this point in the history
  • Loading branch information
ashariyar committed Oct 16, 2022
1 parent 2164e5a commit fd5f40f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions pdfalyzer/pdfalyzer.py
Original file line number Diff line number Diff line change
Expand Up @@ -271,8 +271,7 @@ def _process_reference(self, reference: PdfObjectRelationship) -> List[PdfTreeNo
elif reference.to_obj.idnum not in self.indeterminate_ids and to_node.parent is None:
raise PdfWalkError(f"{reference} - ref has no parent and is not indeterminate")
else:
log.debug(f"{reference} was already seen")
to_node.add_non_tree_relationship(reference)
log.debug(f" Already saw {reference}; not scanning next")
return []
# If no other conditions are met, add the reference as a child
else:
Expand Down

0 comments on commit fd5f40f

Please sign in to comment.