From 72a3af15277c5e5c5f3adefbae8b4a84666ccf15 Mon Sep 17 00:00:00 2001 From: Andreas Lauser Date: Tue, 11 Jun 2024 16:09:41 +0200 Subject: [PATCH] do not keep commented out code in the repository 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 Signed-off-by: Christian Hackenbeck --- odxtools/diaglayer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/odxtools/diaglayer.py b/odxtools/diaglayer.py index 21c44d16..0af64948 100644 --- a/odxtools/diaglayer.py +++ b/odxtools/diaglayer.py @@ -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 ##### #