Skip to content

Commit 5b787a9

Browse files
committed
Refactor proof_of_life_url property
1 parent c86c065 commit 5b787a9

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

mati/resources/verifications.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -88,12 +88,9 @@ def proof_of_life_document(self) -> Optional[Liveness]:
8888
@property
8989
def proof_of_life_url(self) -> Optional[str]:
9090
pol = self.proof_of_life_document
91-
if not pol or not pol.data:
92-
return None
93-
url = pol.data.get('video_url') or pol.data.get( # type: ignore
91+
return pol.data.get('video_url') or pol.data.get( # type: ignore
9492
'selfie_photo_url'
9593
)
96-
return url
9794

9895
@property
9996
def proof_of_life_errors(self) -> List[Errors]:

0 commit comments

Comments
 (0)