We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 500553e commit e14c7e5Copy full SHA for e14c7e5
patcher/value/value.go
@@ -26,7 +26,7 @@ var ValueGetter = func() expr.Option {
26
vPatcher := patcher{}
27
return func(c *conf.Config) {
28
c.Visitors = append(c.Visitors, vPatcher)
29
- vPatcher.ApplyOptions(c)
+ getValueFunc(c)
30
}
31
}()
32
@@ -155,10 +155,6 @@ func (patcher) Visit(node *ast.Node) {
155
156
157
158
-func (patcher) ApplyOptions(c *conf.Config) {
159
- getValueFunc(c)
160
-}
161
-
162
func getValue(params ...any) (any, error) {
163
switch v := params[0].(type) {
164
case AnyValuer:
0 commit comments