Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 0 additions & 8 deletions cache.go
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,6 @@ func (v *Validate) parseFieldTagsRecursive(tag string, fieldName string, alias s
switch t {
case diveTag:
current.typeof = typeDive
continue

case keysTag:
current.typeof = typeKeys
Expand All @@ -218,8 +217,6 @@ func (v *Validate) parseFieldTagsRecursive(tag string, fieldName string, alias s
panic(fmt.Sprintf("'%s' tag must be immediately preceded by the '%s' tag", keysTag, diveTag))
}

current.typeof = typeKeys

// need to pass along only keys tag
// need to increment i to skip over the keys tags
b := make([]byte, 0, 64)
Expand All @@ -237,7 +234,6 @@ func (v *Validate) parseFieldTagsRecursive(tag string, fieldName string, alias s
}

current.keys, _ = v.parseFieldTagsRecursive(string(b[:len(b)-1]), fieldName, "", false)
continue

case endKeysTag:
current.typeof = typeEndKeys
Expand All @@ -251,19 +247,15 @@ func (v *Validate) parseFieldTagsRecursive(tag string, fieldName string, alias s

case omitempty:
current.typeof = typeOmitEmpty
continue

case omitnil:
current.typeof = typeOmitNil
continue

case structOnlyTag:
current.typeof = typeStructOnly
continue

case noStructLevelTag:
current.typeof = typeNoStructLevel
continue

default:
if t == isdefault {
Expand Down