Skip to content

Commit ec15955

Browse files
committed
coderabbit comment
1 parent 2178227 commit ec15955

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

cuenca/resources/users.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -96,9 +96,9 @@ def balance(self) -> int:
9696
return be.rolling_balance if be else 0
9797

9898
@property
99-
def full_name(self):
100-
name = f'{self.names} {self.first_surname} {self.second_surname}'
101-
return name.strip()
99+
def full_name(self) -> str:
100+
parts = [self.names, self.first_surname, self.second_surname]
101+
return ' '.join(p for p in parts if p)
102102

103103
model_config = ConfigDict(
104104
json_schema_extra={

cuenca/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
__version__ = '2.1.16.dev1'
1+
__version__ = '2.1.16'
22
CLIENT_VERSION = __version__
33
API_VERSION = '2020-03-19'

0 commit comments

Comments
 (0)