one-line if for returning project name
This commit is contained in:
parent
5b14c9d5eb
commit
5d37335b37
1 changed files with 1 additions and 3 deletions
|
@ -68,6 +68,4 @@ class ProjectMap(BaseProject):
|
|||
return None
|
||||
|
||||
def name(self):
|
||||
if self.project:
|
||||
return u(self.project)
|
||||
return None
|
||||
return u(self.project) if self.project else None
|
||||
|
|
Loading…
Reference in a new issue