Skip to content

Commit

Permalink
Review feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
K-Phoen committed Feb 8, 2024
1 parent 948b0ff commit fa1fbdc
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions internal/ast/compiler/prometheusdataquery.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,7 @@ var _ Pass = (*PrometheusDataquery)(nil)

// PrometheusDataquery rewrites the definition of the prometheus.Dataquery type and adds a few missing fields.
// Note: this pass is meant to be removed once the schema is up-to-date.
type PrometheusDataquery struct {
}
type PrometheusDataquery struct{}

func (pass *PrometheusDataquery) Process(schemas []*ast.Schema) ([]*ast.Schema, error) {
for i, schema := range schemas {
Expand All @@ -23,7 +22,6 @@ func (pass *PrometheusDataquery) processSchema(schema *ast.Schema) *ast.Schema {
for i, object := range schema.Objects {
if schema.Package == prometheusPackage && object.Name == prometheusDataqueryObject {
schema.Objects[i] = pass.processDataquery(object)
continue
}
}

Expand Down

0 comments on commit fa1fbdc

Please sign in to comment.