mirror of
https://github.com/hanzoai/expr.git
synced 2026-09-24 16:58:58 +00:00
Remove redundant func
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user