Skip to content

Commit

Permalink
refactor: remove second return
Browse files Browse the repository at this point in the history
  • Loading branch information
theissenhelen committed Sep 2, 2024
1 parent 19e38b0 commit 5d247de
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/anemoi/graphs/edges/builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,10 +119,8 @@ def update_graph(self, graph: HeteroData, attrs_config: DotDict | None = None) -
"""
graph = self.register_edges(graph)

if attrs_config is None:
return graph

graph = self.register_attributes(graph, attrs_config)
if attrs_config is not None:
graph = self.register_attributes(graph, attrs_config)

return graph

Expand Down

0 comments on commit 5d247de

Please sign in to comment.