Skip to content

Commit

Permalink
do not keep commented out code in the repository
Browse files Browse the repository at this point in the history
the reason why this was commented out is that the object goes out of
scope immediately afterward, so it is unnecessary to change it back to
`None`. the reason why the line was kept in the first place is that it
is conceptually what is supposed happen. Anyway, since this is in no
way performance critical, let's just add the line back.

thanks to [at]kayoub5 for the catch.

Signed-off-by: Andreas Lauser <[email protected]>
Signed-off-by: Christian Hackenbeck <[email protected]>
  • Loading branch information
andlaus committed Jun 11, 2024
1 parent 33872c1 commit 72a3af1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion odxtools/diaglayer.py
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,7 @@ def _finalize_init(self, database: "Database", odxlinks: OdxLinkDatabase) -> Non
context = SnRefContext(database=database)
context.diag_layer = self
self.diag_layer_raw._resolve_snrefs(context)
#context.diag_layer = None
context.diag_layer = None

#####
# <convenience functionality>
Expand Down

0 comments on commit 72a3af1

Please sign in to comment.