Fix staticcheck lint error in validation-gen

Remove unnecessary assignment to blank identifier.
This commit is contained in:
Lalit Chauhan
2026-01-08 21:08:45 +00:00
parent 7e5c081339
commit d576a57620

View File

@@ -398,7 +398,7 @@ func (td *typeDiscoverer) discoverType(t *types.Type, fldPath *field.Path) (*typ
if fldPath.String() != t.String() {
panic(fmt.Sprintf("path for type != the type name: %s, %s", t.String(), fldPath.String()))
}
consts, _ := td.constantsByType[t]
consts := td.constantsByType[t]
context := validators.Context{
Scope: validators.ScopeType,
Type: t,