mirror of
https://github.com/bigchaindb/bigchaindb.git
synced 2024-10-13 13:34:05 +00:00
Problem: No need to check for txid and output
Solution: remove to unnecesary if conditional
This commit is contained in:
parent
dbe6c95784
commit
5da1cd8434
@ -275,9 +275,6 @@ class TransactionLink(object):
|
||||
}
|
||||
|
||||
def to_query(self):
|
||||
if self.txid is None and self.output is None:
|
||||
return None
|
||||
else:
|
||||
return [{'transaction_id': self.txid,
|
||||
'output_index': self.output},
|
||||
{'output_index': self.output,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user