Skip to content

Commit f0182f8

Browse files
committed
fix(config plugin): change Operator type from struct to string
1 parent 2afd313 commit f0182f8

1 file changed

Lines changed: 2 additions & 7 deletions

File tree

plugins/config/main.go

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -67,19 +67,14 @@ type Expression struct {
6767

6868
type ExpressionBackend struct {
6969
Field string `yaml:"field"`
70-
Operator Operator `yaml:"operator"`
70+
Operator string `yaml:"operator"`
7171
Value interface{} `yaml:"value"`
7272
}
7373

74-
type Operator struct {
75-
Label string `yaml:"label"`
76-
Value string `yaml:"value"`
77-
}
78-
7974
func (b *ExpressionBackend) ToExpression() Expression {
8075
return Expression{
8176
Field: b.Field,
82-
Operator: b.Operator.Value,
77+
Operator: b.Operator,
8378
Value: b.Value,
8479
}
8580
}

0 commit comments

Comments
 (0)