From da4013392cd741fd7a308f52f17004ee6fe2c2ce Mon Sep 17 00:00:00 2001 From: Chris Bradford Date: Wed, 29 Apr 2020 14:45:59 +0100 Subject: [PATCH] Remove empty err declaration as-per code review feedback --- common/utils.go | 2 -- 1 file changed, 2 deletions(-) diff --git a/common/utils.go b/common/utils.go index cb8b9cd..fc8aa05 100644 --- a/common/utils.go +++ b/common/utils.go @@ -147,8 +147,6 @@ func HashCompare(password string, passwordHash string, saltEncoding string) bool log.Errorf("HashCompare, invalid PBKDF2 hash supplied.") return false } - // Define empty error - var err error // Get the iterations from PBKDF2 string iterations, err := strconv.Atoi(hashSplit[2]) if err != nil {