Skip to content

Commit 7b0dccd

Browse files
committed
fix mypy
1 parent 88b0f36 commit 7b0dccd

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

xrpl/models/transactions/clawback.py

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -50,17 +50,15 @@ def _get_errors(self: Self) -> Dict[str, str]:
5050
# Amount transaction errors
5151
if is_xrp(self.amount):
5252
errors["amount"] = "``amount`` cannot be XRP."
53-
54-
if is_issued_currency(self.amount):
53+
elif is_issued_currency(self.amount):
5554
if self.holder is not None:
5655
errors["amount"] = "Cannot have Holder for currency."
57-
if self.account == self.amount.issuer: # type:ignore
56+
if self.account == self.amount.issuer:
5857
errors["amount"] = "Holder's address is wrong."
59-
60-
if is_mpt(self.amount):
58+
elif is_mpt(self.amount):
6159
if self.holder is None:
6260
errors["amount"] = "Missing Holder."
63-
if self.account == self.holder:
61+
elif self.account == self.holder:
6462
errors["amount"] = "Invalid Holder account."
6563

6664
return errors

0 commit comments

Comments
 (0)