Skip to content

Commit b490960

Browse files
author
Xiao Li
committed
convert to boolean by bool
1 parent 9b67317 commit b490960

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/diem/jsonrpc/async_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -392,7 +392,7 @@ async def get_diem_id_domain_map(self, batch_size: int = 100) -> typing.Dict[str
392392

393393
async def support_diem_id(self) -> bool:
394394
tc_account = await self.must_get_account(TREASURY_ADDRESS)
395-
return True if tc_account.role.diem_id_domain_events_key else False
395+
return bool(tc_account.role.diem_id_domain_events_key)
396396

397397
async def submit(
398398
self,

src/diem/jsonrpc/client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -401,7 +401,7 @@ def get_diem_id_domain_map(self, batch_size: int = 100) -> typing.Dict[str, str]
401401

402402
def support_diem_id(self) -> bool:
403403
tc_account = self.must_get_account(TREASURY_ADDRESS)
404-
return True if tc_account.role.diem_id_domain_events_key else False
404+
return bool(tc_account.role.diem_id_domain_events_key)
405405

406406
def submit(
407407
self,

0 commit comments

Comments
 (0)