Skip to content

Commit 9d7acca

Browse files
fix: passing no options to jsonpointer.GetTarget()
1 parent 3b71427 commit 9d7acca

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

jsonpointer/jsonpointer.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ func WithStructTags(structTags ...string) option {
3737
}
3838
}
3939

40-
func getOptions(opts ...option) *options {
40+
func getOptions(opts []option) *options {
4141
o := &options{
4242
StructTags: []string{DefaultStructTag},
4343
}
@@ -63,7 +63,7 @@ func (j JSONPointer) Validate() error {
6363
// WithStructTags can be used to set the type of struct tags to use when navigating structs.
6464
// If the struct implements any of the Navigable interfaces it will be used to navigate the source.
6565
func GetTarget(source any, pointer JSONPointer, opts ...option) (any, error) {
66-
o := getOptions(opts...)
66+
o := getOptions(opts)
6767

6868
stack, err := pointer.getNavigationStack()
6969
if err != nil {

0 commit comments

Comments
 (0)