bitcoind: use and_then instead of map().flatten()
This commit is contained in:
parent
51f11a9e2f
commit
7513bcbf09
@ -767,8 +767,7 @@ impl From<Json> for GetTxRes {
|
||||
.map(|bt| bt as u32);
|
||||
let conflicting_txs = json
|
||||
.get("walletconflicts")
|
||||
.map(|v| Json::as_array(&v))
|
||||
.flatten()
|
||||
.and_then(Json::as_array)
|
||||
.map(|array| {
|
||||
array
|
||||
.into_iter()
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user