Skip to content

Commit

Permalink
Remove redundant iferr checks
Browse files Browse the repository at this point in the history
  • Loading branch information
asbjorn committed Aug 15, 2023
1 parent 218f7d7 commit b683c57
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions plugin/auth/postgresql/postgresql.go
Original file line number Diff line number Diff line change
Expand Up @@ -148,10 +148,6 @@ func (a *Auth) OnConnectAuthenticate(cl *mqtt.Client, pk packets.Packet) bool {
return false
}

if err != nil {
return false
}

if ok := bcrypt.CompareHashAndPassword([]byte(password), pk.Connect.Password); ok == nil {
return true
}
Expand Down

0 comments on commit b683c57

Please sign in to comment.