mirror of
https://codeberg.org/scip/valpass.git
synced 2025-12-16 20:21:00 +01:00
fix linting errors
This commit is contained in:
@@ -14,7 +14,6 @@ import (
|
|||||||
type Tests struct {
|
type Tests struct {
|
||||||
name string
|
name string
|
||||||
want bool
|
want bool
|
||||||
negate bool
|
|
||||||
opts valpass.Options
|
opts valpass.Options
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -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)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user