btcd
btcd copied to clipboard
`if` with identical `then` and `else` branches
In the following code, both control branches do the same.
https://github.com/btcsuite/btcd/blob/38ee9a41c8f8aa24a079a28f5e8a86faecffdfe1/cmd/btcctl/config.go#L143-L147
Found by revive (rule identical-branches)
Duplicate of https://github.com/btcsuite/btcd/issues/1891.