btcd icon indicating copy to clipboard operation
btcd copied to clipboard

`if` with identical `then` and `else` branches

Open chavacava opened this issue 3 years ago • 1 comments

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)

chavacava avatar Sep 24 '22 17:09 chavacava

Duplicate of https://github.com/btcsuite/btcd/issues/1891.

guggero avatar Oct 01 '22 09:10 guggero