Merge pull request #111048 from alingse-forks/fix-with-asasalint

fix pass []any as any in variadic function
This commit is contained in:
Kubernetes Prow Robot 2022-07-10 18:39:47 -07:00 committed by GitHub
commit b0d5769535
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -53,7 +53,7 @@ func (f *FlakeReport) RecordFlakeIfError(err error, optionalDescription ...inter
return
}
msg := fmt.Sprintf("Unexpected error occurred: %v", err)
desc := buildDescription(optionalDescription)
desc := buildDescription(optionalDescription...)
if desc != "" {
msg = fmt.Sprintf("%v (Description: %v)", msg, desc)
}

View File

@ -550,7 +550,7 @@ func (f *Framework) CreateNamespace(baseName string, labels map[string]string) (
// RecordFlakeIfError records flakeness info if error happens.
// NOTE: This function is not used at any places yet, but we are in progress for https://github.com/kubernetes/kubernetes/issues/66239 which requires this. Please don't remove this.
func (f *Framework) RecordFlakeIfError(err error, optionalDescription ...interface{}) {
f.flakeReport.RecordFlakeIfError(err, optionalDescription)
f.flakeReport.RecordFlakeIfError(err, optionalDescription...)
}
// AddNamespacesToDelete adds one or more namespaces to be deleted when the test