Return empty string instead of None when no grid type

This commit is contained in:
mrg 2021-01-06 09:41:13 -08:00
parent 72dc1c58da
commit be79789097
1 changed files with 1 additions and 4 deletions

View File

@ -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