mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2025-02-19 15:30:17 +00:00
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:
parent
ee93d003d3
commit
c9b5e6e8ca
2 changed files with 2 additions and 2 deletions
|
@ -170,7 +170,7 @@ func newManager(ctx context.Context) (*manager, error) {
|
||||||
return nil, fmt.Errorf("failed to init datasource: %w", err)
|
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 {
|
for _, s := range *externalLabels {
|
||||||
if len(s) == 0 {
|
if len(s) == 0 {
|
||||||
continue
|
continue
|
||||||
|
|
|
@ -11,7 +11,7 @@ import (
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestAlert_ExecTemplate(t *testing.T) {
|
func TestAlert_ExecTemplate(t *testing.T) {
|
||||||
extLabels := make(map[string]string, 0)
|
extLabels := make(map[string]string)
|
||||||
const (
|
const (
|
||||||
extCluster = "prod"
|
extCluster = "prod"
|
||||||
extDC = "east"
|
extDC = "east"
|
||||||
|
|
Loading…
Reference in a new issue