Build: Stricter linting should break the build (#23606)

This commit is contained in:
Carl Bergquist
2020-04-16 16:09:27 +02:00
committed by GitHub
parent 19f03e593c
commit 9652a1410b
6 changed files with 41 additions and 11 deletions
+2 -2
View File
@@ -127,7 +127,7 @@ func (c *QueryCondition) executeQuery(context *alerting.EvalContext, timeRange *
}
type queryDto struct {
RefId string `json:"refId"`
RefID string `json:"refId"`
Model *simplejson.Json `json:"model"`
Datasource *simplejson.Json `json:"datasource"`
MaxDataPoints int64 `json:"maxDataPoints"`
@@ -137,7 +137,7 @@ func (c *QueryCondition) executeQuery(context *alerting.EvalContext, timeRange *
queries := []*queryDto{}
for _, q := range req.Queries {
queries = append(queries, &queryDto{
RefId: q.RefId,
RefID: q.RefId,
Model: q.Model,
Datasource: simplejson.NewFromAny(map[string]interface{}{
"id": q.DataSource.Id,