chore: fix many staticcheck warnings

The most important ones were fixed in the two previous commit.
This commit is contained in:
Vincent Bernat
2025-08-02 20:54:49 +02:00
parent 7a268d271e
commit 03b947e3c5
20 changed files with 26 additions and 61 deletions

View File

@@ -72,7 +72,7 @@ func isListen(fl validator.FieldLevel) bool {
// (both fields should be a slice)
func noIntersectField(fl validator.FieldLevel) bool {
field := fl.Field()
currentField, _, ok := fl.GetStructFieldOK()
currentField, _, _, ok := fl.GetStructFieldOK2()
if !ok {
return false
}