From f75f315dbcf5a3de0be08ae69793b65bada132b5 Mon Sep 17 00:00:00 2001 From: Tomas Susanka Date: Wed, 5 Sep 2018 10:31:09 +0200 Subject: [PATCH] ripple: style --- src/apps/ripple/sign_tx.py | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/src/apps/ripple/sign_tx.py b/src/apps/ripple/sign_tx.py index d67cd3cece..cd3bb94e55 100644 --- a/src/apps/ripple/sign_tx.py +++ b/src/apps/ripple/sign_tx.py @@ -65,13 +65,8 @@ def set_canonical_flag(msg: RippleSignTx): def validate(msg: RippleSignTx): - if None in ( - msg.fee, - msg.sequence, - msg.payment, - ) or msg.payment and None in ( - msg.payment.amount, - msg.payment.destination, + if None in (msg.fee, msg.sequence, msg.payment) or ( + msg.payment and None in (msg.payment.amount, msg.payment.destination) ): raise ProcessError( "Some of the required fields are missing (fee, sequence, payment.amount, payment.destination)"