Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

if with identical then and else branches #1888

Open
chavacava opened this issue Sep 24, 2022 · 1 comment
Open

if with identical then and else branches #1888

chavacava opened this issue Sep 24, 2022 · 1 comment

Comments

@chavacava
Copy link

In the following code, both control branches do the same.

btcd/cmd/btcctl/config.go

Lines 143 to 147 in 38ee9a4

if useWallet {
defaultPort = "38332"
} else {
defaultPort = "38332"
}

Found by revive (rule identical-branches)

@guggero
Copy link
Collaborator

guggero commented Oct 1, 2022

Duplicate of #1891.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants