Skip to content

Commit

Permalink
Merge pull request #96402 from lala123912/cc_4
Browse files Browse the repository at this point in the history
fix staticcheck:vendor/k8s.io/kubectl/pkg/cmd/scale
  • Loading branch information
k8s-ci-robot committed Dec 9, 2020
2 parents 83b2c7a + 5710e1b commit 5664482
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion hack/.staticcheck_failures
Original file line number Diff line number Diff line change
Expand Up @@ -48,4 +48,3 @@ vendor/k8s.io/client-go/rest
vendor/k8s.io/client-go/rest/watch
vendor/k8s.io/client-go/transport
vendor/k8s.io/cloud-provider/sample
vendor/k8s.io/kubectl/pkg/cmd/scale
2 changes: 1 addition & 1 deletion staging/src/k8s.io/kubectl/pkg/cmd/scale/scale.go
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ func (o *ScaleOptions) RunScale() error {
}

infos := []*resource.Info{}
err = r.Visit(func(info *resource.Info, err error) error {
r.Visit(func(info *resource.Info, err error) error {
if err == nil {
infos = append(infos, info)
}
Expand Down

0 comments on commit 5664482

Please sign in to comment.