Skip to content

Commit

Permalink
Remove empty err declaration as-per code review feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
coldfire84 committed Apr 29, 2020
1 parent 1d47c63 commit da40133
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions common/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit da40133

Please sign in to comment.