From 7c718401d4d8238b4c7e25d5244f2ce977d26e6e Mon Sep 17 00:00:00 2001 From: Jan Petykiewicz Date: Thu, 1 Aug 2024 00:34:52 -0700 Subject: [PATCH] flatten indentation (unnecessary else) --- snarled/trace.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/snarled/trace.py b/snarled/trace.py index ebb8e00..8876623 100644 --- a/snarled/trace.py +++ b/snarled/trace.py @@ -276,9 +276,8 @@ def _get_topcell( """ if name is None: return layout.top_cell() - else: - ind = layout.cell_by_name(name) - return layout.cell(ind) + ind = layout.cell_by_name(name) + return layout.cell(ind) def _write_net_layout(