mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-23 11:50:44 +00:00
Merge pull request #111048 from alingse-forks/fix-with-asasalint
fix pass []any as any in variadic function
This commit is contained in:
commit
b0d5769535
@ -53,7 +53,7 @@ func (f *FlakeReport) RecordFlakeIfError(err error, optionalDescription ...inter
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
msg := fmt.Sprintf("Unexpected error occurred: %v", err)
|
msg := fmt.Sprintf("Unexpected error occurred: %v", err)
|
||||||
desc := buildDescription(optionalDescription)
|
desc := buildDescription(optionalDescription...)
|
||||||
if desc != "" {
|
if desc != "" {
|
||||||
msg = fmt.Sprintf("%v (Description: %v)", msg, desc)
|
msg = fmt.Sprintf("%v (Description: %v)", msg, desc)
|
||||||
}
|
}
|
||||||
|
@ -550,7 +550,7 @@ func (f *Framework) CreateNamespace(baseName string, labels map[string]string) (
|
|||||||
// RecordFlakeIfError records flakeness info if error happens.
|
// 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.
|
// 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{}) {
|
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
|
// AddNamespacesToDelete adds one or more namespaces to be deleted when the test
|
||||||
|
Loading…
Reference in New Issue
Block a user