fix linting errors

This commit is contained in:
2024-10-12 19:09:54 +02:00
parent 458be4dabb
commit 1a6747dfa2

View File

@@ -12,10 +12,9 @@ import (
) )
type Tests struct { type Tests struct {
name string name string
want bool want bool
negate bool opts valpass.Options
opts valpass.Options
} }
var pass_random_good = []string{ var pass_random_good = []string{
@@ -299,7 +298,10 @@ func BenchmarkValidateAllwDict(b *testing.B) {
passwords := GetPasswords(b.N) passwords := GetPasswords(b.N)
for i := 0; i < b.N; i++ { for i := 0; i < b.N; i++ {
valpass.Validate(passwords[i], opts_dict) _, err := valpass.Validate(passwords[i], opts_dict)
if err != nil {
panic(err)
}
} }
} }