Skip to content

Commit

Permalink
fix(lint): resolve IDENTICAL_BRANCHES issue in broker
Browse files Browse the repository at this point in the history
The same code is executed when the condition "err != nil" is true or false, because the code in the if-then branch and after the if statement is identical.
  • Loading branch information
frzifus committed Sep 30, 2024
1 parent 893978c commit 9a05add
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions broker.go
Original file line number Diff line number Diff line change
Expand Up @@ -1426,9 +1426,6 @@ func (b *Broker) sendAndReceiveSASLPlainAuthV0() error {
func (b *Broker) sendAndReceiveSASLPlainAuthV1(authSendReceiver func(authBytes []byte) (*SaslAuthenticateResponse, error)) error {
authBytes := []byte(b.conf.Net.SASL.AuthIdentity + "\x00" + b.conf.Net.SASL.User + "\x00" + b.conf.Net.SASL.Password)
_, err := authSendReceiver(authBytes)
if err != nil {
return err
}
return err
}

Expand Down

0 comments on commit 9a05add

Please sign in to comment.