From be7978909735d97762c180c2c51829c956928f0a Mon Sep 17 00:00:00 2001 From: mrg Date: Wed, 6 Jan 2021 09:41:13 -0800 Subject: [PATCH] Return empty string instead of None when no grid type --- compiler/router/grid_cell.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/compiler/router/grid_cell.py b/compiler/router/grid_cell.py index ba30fcef..0a89358d 100644 --- a/compiler/router/grid_cell.py +++ b/compiler/router/grid_cell.py @@ -34,7 +34,6 @@ class grid_cell: if self.min_cost > 0: return self.min_cost - def get_type(self): type_string = "" @@ -50,7 +49,5 @@ class grid_cell: if self.path: type_string += "P" - if type_string != "": - return type_string + return type_string - return None