From c9b5e6e8caade9c7741ec559f6eded2ed9468a9d Mon Sep 17 00:00:00 2001 From: Roman Khavronenko Date: Mon, 9 May 2022 08:11:56 +0000 Subject: [PATCH] Code check (#2558) * vmstorage: make gofmt happy Signed-off-by: hagen1778 * vmalert: make linter happy Signed-off-by: hagen1778 --- app/vmalert/main.go | 2 +- app/vmalert/notifier/alert_test.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/vmalert/main.go b/app/vmalert/main.go index 9366ad3500..b3ffe17c83 100644 --- a/app/vmalert/main.go +++ b/app/vmalert/main.go @@ -170,7 +170,7 @@ func newManager(ctx context.Context) (*manager, error) { return nil, fmt.Errorf("failed to init datasource: %w", err) } - labels := make(map[string]string, 0) + labels := make(map[string]string) for _, s := range *externalLabels { if len(s) == 0 { continue diff --git a/app/vmalert/notifier/alert_test.go b/app/vmalert/notifier/alert_test.go index 9f5a932201..1a55b99f7a 100644 --- a/app/vmalert/notifier/alert_test.go +++ b/app/vmalert/notifier/alert_test.go @@ -11,7 +11,7 @@ import ( ) func TestAlert_ExecTemplate(t *testing.T) { - extLabels := make(map[string]string, 0) + extLabels := make(map[string]string) const ( extCluster = "prod" extDC = "east"