Skip to content

Commit

Permalink
refactor(lineage): simplify Node.walk() (#3098)
Browse files Browse the repository at this point in the history
  • Loading branch information
rexledesma committed Mar 8, 2024
1 parent 3bbcca2 commit cea7508
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions sqlglot/lineage.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,7 @@ def walk(self) -> t.Iterator[Node]:
yield self

for d in self.downstream:
if isinstance(d, Node):
yield from d.walk()
else:
yield d
yield from d.walk()

def to_html(self, dialect: DialectType = None, **opts) -> GraphHTML:
nodes = {}
Expand Down

0 comments on commit cea7508

Please sign in to comment.