From b683c57f2571e956c207d26567cb0836aba79168 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Asbj=C3=B8rn=20Alexander=20Fellinghaug?= Date: Tue, 15 Aug 2023 12:39:08 +0200 Subject: [PATCH] Remove redundant iferr checks --- plugin/auth/postgresql/postgresql.go | 4 ---- 1 file changed, 4 deletions(-) diff --git a/plugin/auth/postgresql/postgresql.go b/plugin/auth/postgresql/postgresql.go index 42fed98..dd82797 100644 --- a/plugin/auth/postgresql/postgresql.go +++ b/plugin/auth/postgresql/postgresql.go @@ -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 }