chore: enable use-any from revive

Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com>
This commit is contained in:
Matthieu MOREL
2025-01-17 07:58:10 +01:00
parent 5b1738abf8
commit cbba3bdde7
139 changed files with 798 additions and 799 deletions
+1 -1
View File
@@ -88,7 +88,7 @@ func initConfig() error {
ReportData = &E2EReport{
TestDescription: VeleroCfg.TestCaseDescribe,
OtherFields: make(map[string]interface{}),
OtherFields: make(map[string]any),
}
return nil
+3 -3
View File
@@ -82,11 +82,11 @@ func (m *MetricsCollector) UpdateOneTimeMetrics() {
}
// GetMetrics returns the metrics from all metrics
func (m *MetricsCollector) GetMetrics() map[string]interface{} {
func (m *MetricsCollector) GetMetrics() map[string]any {
m.Mu.Lock() // Acquire the lock before accessing shared resources
defer m.Mu.Unlock() // Release the lock after the function returns
dataMap := make(map[string]interface{})
dataMap := make(map[string]any)
resData := make(map[string]([]map[string]map[string]string))
for _, metric := range m.Metrics {
monitorMetrics := metric.GetMetrics()
@@ -102,7 +102,7 @@ func (m *MetricsCollector) GetMetrics() map[string]interface{} {
}
for _, metric := range m.OneTimeMetrics {
oneTimeMetricsMap := make(map[string]interface{})
oneTimeMetricsMap := make(map[string]any)
monitorMetrics := metric.GetMetrics()
for key, value := range monitorMetrics {
oneTimeMetricsMap[key] = value