Skip to content

Commit

Permalink
updated key len
Browse files Browse the repository at this point in the history
  • Loading branch information
awitas committed Oct 7, 2022
1 parent 6fce30e commit f536a2d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 16 deletions.
9 changes: 1 addition & 8 deletions shared/client/dictionary.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,7 @@ type Dictionary struct {
}

func (d *Dictionary) KeysLen() int {
count := 0
for _, item := range d.inputs {
if item.Auxiliary {
continue
}
count++
}
return count
return len(d.inputs)
}

func (d *Dictionary) inputSize() int {
Expand Down
9 changes: 1 addition & 8 deletions shared/field.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,7 @@ type (
)

func (d *MetaInput) KeysLen() int {
count := 0
for _, item := range d.Inputs {
if item.Auxiliary {
continue
}
count++
}
return count
return len(d.Inputs)
}

func (f *Field) RawType() reflect.Type {
Expand Down

0 comments on commit f536a2d

Please sign in to comment.