Skip to content

Commit bbacf06

Browse files
committed
Refactor EscrowUtils for improved readability
1 parent b2ca947 commit bbacf06

File tree

1 file changed

+6
-6
lines changed
  • packages/sdk/python/human-protocol-sdk/human_protocol_sdk/escrow

1 file changed

+6
-6
lines changed

packages/sdk/python/human-protocol-sdk/human_protocol_sdk/escrow/escrow_utils.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -316,17 +316,17 @@ def get_escrows(
316316
exchange_oracle=escrow.get("exchangeOracle", None),
317317
recording_oracle_fee=(
318318
int(escrow.get("recordingOracleFee"))
319-
if escrow.get("recordingOracleFee", None) not in (None) or ""
319+
if escrow.get("recordingOracleFee")
320320
else None
321321
),
322322
reputation_oracle_fee=(
323323
int(escrow.get("reputationOracleFee"))
324-
if escrow.get("reputationOracleFee", None) not in (None) or ""
324+
if escrow.get("reputationOracleFee")
325325
else None
326326
),
327327
exchange_oracle_fee=(
328328
int(escrow.get("exchangeOracleFee"))
329-
if escrow.get("exchangeOracleFee", None) not in (None) or ""
329+
if escrow.get("exchangeOracleFee")
330330
else None
331331
),
332332
)
@@ -415,17 +415,17 @@ def get_escrow(
415415
exchange_oracle=escrow.get("exchangeOracle", None),
416416
recording_oracle_fee=(
417417
int(escrow.get("recordingOracleFee"))
418-
if escrow.get("recordingOracleFee", None) not in (None) or ""
418+
if escrow.get("recordingOracleFee")
419419
else None
420420
),
421421
reputation_oracle_fee=(
422422
int(escrow.get("reputationOracleFee"))
423-
if escrow.get("reputationOracleFee", None) not in (None) or ""
423+
if escrow.get("reputationOracleFee")
424424
else None
425425
),
426426
exchange_oracle_fee=(
427427
int(escrow.get("exchangeOracleFee"))
428-
if escrow.get("exchangeOracleFee", None) not in (None) or ""
428+
if escrow.get("exchangeOracleFee")
429429
else None
430430
),
431431
)

0 commit comments

Comments
 (0)