mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-28 05:57:25 +00:00
fix inefassign linter declaring variable
This commit is contained in:
parent
4bf93f318a
commit
4352768240
@ -217,7 +217,7 @@ func (a *APIInstaller) registerResourceHandlers(path string, storage rest.Storag
|
|||||||
isSubresource := len(subresource) > 0
|
isSubresource := len(subresource) > 0
|
||||||
|
|
||||||
// If there is a subresource, namespace scoping is defined by the parent resource
|
// If there is a subresource, namespace scoping is defined by the parent resource
|
||||||
namespaceScoped := true
|
var namespaceScoped bool
|
||||||
if isSubresource {
|
if isSubresource {
|
||||||
parentStorage, ok := a.group.Storage[resource]
|
parentStorage, ok := a.group.Storage[resource]
|
||||||
if !ok {
|
if !ok {
|
||||||
|
Loading…
Reference in New Issue
Block a user