Remove redundant func

This commit is contained in:
Anton Medvedev
2023-12-26 16:06:16 +01:00
parent 3bda06349a
commit 5d8a11f2c5
+1 -5
View File
@@ -26,7 +26,7 @@ var ValueGetter = func() expr.Option {
vPatcher := patcher{}
return func(c *conf.Config) {
c.Visitors = append(c.Visitors, vPatcher)
vPatcher.ApplyOptions(c)
getValueFunc(c)
}
}()
@@ -155,10 +155,6 @@ func (patcher) Visit(node *ast.Node) {
}
}
func (patcher) ApplyOptions(c *conf.Config) {
getValueFunc(c)
}
func getValue(params ...any) (any, error) {
switch v := params[0].(type) {
case AnyValuer: