From 4f5960b08f7a667a4e1352b3e5cbcc054bf330af Mon Sep 17 00:00:00 2001 From: Isaac Lambat Date: Wed, 29 Nov 2023 17:51:38 +0000 Subject: [PATCH] Go Fmt --- tools/stats-definition-exporter/main.go | 4 ++-- tools/stats-definition-exporter/stat_traverser.go | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tools/stats-definition-exporter/main.go b/tools/stats-definition-exporter/main.go index 9678fe8863..c2ef1d1193 100644 --- a/tools/stats-definition-exporter/main.go +++ b/tools/stats-definition-exporter/main.go @@ -82,10 +82,10 @@ func getStats(logger *log.Logger) (StatDefinitions, error) { // Get all the stats globalStatsDefinitions := traverseAndRetrieveStats(logger, globalStats) - dbStatDefinitions := traverseAndRetrieveStats(logger, dbStats) + dbStatDefinitions := traverseAndRetrieveStats(logger, dbStats) // Merge the two maps - stats := make(StatDefinitions, len(globalStatsDefinitions) + len(dbStatDefinitions)) + stats := make(StatDefinitions, len(globalStatsDefinitions)+len(dbStatDefinitions)) for k, v := range globalStatsDefinitions { stats[k] = v } diff --git a/tools/stats-definition-exporter/stat_traverser.go b/tools/stats-definition-exporter/stat_traverser.go index d6016acf89..deeb5e86b0 100644 --- a/tools/stats-definition-exporter/stat_traverser.go +++ b/tools/stats-definition-exporter/stat_traverser.go @@ -57,7 +57,7 @@ func traverseAndRetrieveStats(logger *log.Logger, s any) StatDefinitions { } // Follow to struct down a level and append the stats to the map - for k,v := range traverseAndRetrieveStats(logger, field.Interface()) { + for k, v := range traverseAndRetrieveStats(logger, field.Interface()) { stats[k] = v } }