one-line if for returning project name

This commit is contained in:
Alan Hamlett 2016-08-31 14:52:05 +02:00
parent 5b14c9d5eb
commit 5d37335b37

View file

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