mirror of
https://github.com/k3s-io/kubernetes.git
synced 2026-07-21 00:33:15 +00:00
Fix staticcheck lint error in validation-gen
Remove unnecessary assignment to blank identifier.
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user