Skip to content

Commit e14c7e5

Browse files
committed
Remove redundant func
1 parent 500553e commit e14c7e5

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

patcher/value/value.go

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ var ValueGetter = func() expr.Option {
2626
vPatcher := patcher{}
2727
return func(c *conf.Config) {
2828
c.Visitors = append(c.Visitors, vPatcher)
29-
vPatcher.ApplyOptions(c)
29+
getValueFunc(c)
3030
}
3131
}()
3232

@@ -155,10 +155,6 @@ func (patcher) Visit(node *ast.Node) {
155155
}
156156
}
157157

158-
func (patcher) ApplyOptions(c *conf.Config) {
159-
getValueFunc(c)
160-
}
161-
162158
func getValue(params ...any) (any, error) {
163159
switch v := params[0].(type) {
164160
case AnyValuer:

0 commit comments

Comments
 (0)