Merge pull request #120938 from ptsgr/fix-linter

Refactoring variable declaration and value setting
This commit is contained in:
Kubernetes Prow Robot 2023-09-29 10:56:43 -07:00 committed by GitHub
commit c54c6b2383
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -862,8 +862,7 @@ metadata:
for _, tt := range tests {
t.Run(tt.name, func(t *testing.T) {
out := &bytes.Buffer{}
var replicas int32
replicas = 3
var replicas int32 = 3
if err := coreDNSAddon(tt.args.cfg, tt.args.client, &replicas, out, tt.args.printManifest); (err != nil) != tt.wantErr {
t.Errorf("coreDNSAddon() error = %v, wantErr %v", err, tt.wantErr)
return