Skip to content

Commit a720726

Browse files
committed
Remove unneeded assertion
1 parent ed9c7e4 commit a720726

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

pyrogram/methods/auth/accept_terms_of_service.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,4 @@ async def accept_terms_of_service(self, terms_of_service_id: str) -> bool:
3636
)
3737
)
3838

39-
assert r
40-
41-
return True
39+
return bool(r)

0 commit comments

Comments
 (0)