Code check (#2558)

* vmstorage: make gofmt happy

Signed-off-by: hagen1778 <roman@victoriametrics.com>

* vmalert: make linter happy

Signed-off-by: hagen1778 <roman@victoriametrics.com>
This commit is contained in:
Roman Khavronenko 2022-05-09 08:11:56 +00:00 committed by Aliaksandr Valialkin
parent ee93d003d3
commit c9b5e6e8ca
No known key found for this signature in database
GPG key ID: A72BEC6CD3D0DED1
2 changed files with 2 additions and 2 deletions

View file

@ -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

View file

@ -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"