Skip to content

Commit 9759fdb

Browse files
21M4TWchrisguida
authored andcommitted
-Removing unnecessary condition
1 parent 8a7e333 commit 9759fdb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

rebalance/rebalance.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ def setup_routing_fees(route, msat):
6565
route_set_msat(r, msat)
6666
r["delay"] = delay
6767
channels = plugin.rpc.listchannels(r["channel"]).get("channels")
68-
ch = next(c for c in channels if c["destination"] == r["id"]) if channels else None
68+
ch = next(c for c in channels if c["destination"] == r["id"])
6969
fee = Millisatoshi(ch["base_fee_millisatoshi"])
7070
# BOLT #7 requires fee >= fee_base_msat + ( amount_to_forward * fee_proportional_millionths / 1000000 )
7171
fee += (

0 commit comments

Comments
 (0)