]> git.bitcoin.ninja Git - rust-lightning/commit
Drop unreachable shutdown code in `Channel::get_shutdown`
authorMatt Corallo <git@bluematt.me>
Wed, 29 Nov 2023 05:58:52 +0000 (05:58 +0000)
committerMatt Corallo <git@bluematt.me>
Fri, 8 Dec 2023 02:25:59 +0000 (02:25 +0000)
commit1667b4d20072dad58bc7252966221dfaa18f38b8
treed8e92116d1e7ad56185b978d7d46ba17be10df80
parent8e519b56d6c4c9fe397bb73dacce059d5db7703a
Drop unreachable shutdown code in `Channel::get_shutdown`

`Channel` is only a thing for funded channels. Thus, checking if a
channel has not yet been funded is dead code and can simply be
elided.
lightning/src/ln/channel.rs
lightning/src/ln/channelmanager.rs