Skip to content

Commit de24491

Browse files
qshuaishuai.qinodivbyzero
authored
chore: remove unnecessary statement (#1200)
Co-authored-by: shuai.qi <shuai.qi@jiduauto.com> Co-authored-by: nodivbyzero <nodivbyzero@gmail.com>
1 parent 14a31d2 commit de24491

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

cache.go

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,6 @@ func (v *Validate) parseFieldTagsRecursive(tag string, fieldName string, alias s
210210
switch t {
211211
case diveTag:
212212
current.typeof = typeDive
213-
continue
214213

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

222-
current.typeof = typeKeys
223-
224221
// need to pass along only keys tag
225222
// need to increment i to skip over the keys tags
226223
b := make([]byte, 0, 64)
@@ -238,7 +235,6 @@ func (v *Validate) parseFieldTagsRecursive(tag string, fieldName string, alias s
238235
}
239236

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

243239
case endKeysTag:
244240
current.typeof = typeEndKeys
@@ -256,19 +252,15 @@ func (v *Validate) parseFieldTagsRecursive(tag string, fieldName string, alias s
256252

257253
case omitempty:
258254
current.typeof = typeOmitEmpty
259-
continue
260255

261256
case omitnil:
262257
current.typeof = typeOmitNil
263-
continue
264258

265259
case structOnlyTag:
266260
current.typeof = typeStructOnly
267-
continue
268261

269262
case noStructLevelTag:
270263
current.typeof = typeNoStructLevel
271-
continue
272264

273265
default:
274266
if t == isdefault {

0 commit comments

Comments
 (0)